Comments (9)
Resolved by commit c0e4107.
Usage
To override the temp directory in the same PowerShell window that you will execute publish-interactive.ps1
declare the following.
$pkgWebOptions["tempFolder"]="C:\Temp\publish\temp"
If you are using PublishConfiguration.ps1
you can set this value in that file as well.
Files
Until the fix is released the .nupkg file is at https://dl.dropbox.com/u/40134810/PackageWeb/PackageWeb.1.1.7.nupkg
The new version of publish-interactive.ps1 is available at https://raw.github.com/sayedihashimi/package-web/c0e4107479de2885aabf4ed8ccceb4cc31ebaea9/Powershell/Publish-Interactive.ps1
from package-web.
I can't seem to get this to work as expected. I added the following to the PublishConfiguration.ps1 (along with the other $settingsFromUser parameters):
$pkgWebOptions =@()
$pkgWebOptions += @{name="tempFolder";value="C:\Temp\Publish"}
When the code executes, I get the following output:
PS C:\dev\Learning.com\Platform_Trunk\src\EasyTech\Platform Web\obj\Dev\Package> .\Publish-Interactive.ps1
Detected parameters file, you will not be prompted for parameters. File= [C:\dev\Learning.com\Platform_Trunk\src\EasyTech\Platform Web\obj\Dev\Package\PublishConfiguration.ps1]
Zip file for publishing: [Learning.Com.Web.zip]
Using temp foler [C:\Users\tbehunin\AppData\Local\Temp]
Temp folder [C:\Users\tbehunin\AppData\Local\Temp\Learning.Com.Web_zip]
Deleting temp folder [C:\Users\tbehunin\AppData\Local\Temp\Learning.Com.Web_zip]
Creating temp directory [C:\Users\tbehunin\AppData\Local\Temp\Learning.Com.Web_zip]
As you can see, it still uses the value from $env:Temp (line 671 in Publish-Interactive.ps1). For some reason, $pkgWebOptions is null when the following code on line 673 is evaluated:
if($pkgWebOptions -and $pkgWebOptions["tempFolder"]){
from package-web.
I've got a bug here, thanks for letting me know. The fix is straight forward but I don't have the time at this minute to make it.
In the mean time in the publishconfiguration.ps1 you can declare the temp folder in the following manner.
$global:pkgWebOptions =@{}
$global:pkgWebOptions["tempFolder"]="C:\temp\publish\01\a"
from package-web.
I have fixed this. You can now override the temp folder used by adding the following PublishConfiguration.ps1
$global:pkgWebOptions =@{}
$global:pkgWebOptions["tempFolder"]="C:\temp\publish\01\a"
You can find a drop for testing at https://dl.dropbox.com/u/40134810/PackageWeb/issue-31/PackageWeb.zip. Please re-open if you still have issues.
from package-web.
Nice! Thanks!
from package-web.
U have a preference as to which bug I work on next?
from package-web.
Definitely #48. We can't get PackageWeb to work at all in our automated CI environment. Works fine though when executing it manually.
from package-web.
OK cool, I'll look into that one next. I'm already about half way through #42 so will finish that one first, then move on to your issue. That one may take some time, I get the feeling it won't be an easy fix :(
from package-web.
Sorry couldn't get to #48 today, but I did also resolve #42 today. Got to run and have to work on my book for the next few days. Let me know if you have any issues with the fixed. #48 will be next.
from package-web.
Related Issues (20)
- NestedBuild - Additional Issues
- Configs that are two characters or less are ignored in Publish-Interactive.ps1 HOT 1
- Running Publish-Interactive.ps1 in context of other script has issues with multiple zips HOT 2
- Support getting the zip file via user settings file
- Transforming solution configuration transform and then publish profile transform. HOT 14
- Support for Publishing Profile config transforms HOT 1
- Support for Convention-based scriptable pre/post executions
- Update how transforms are invoked
- Transform Name not getting saved
- Replace SedodreamPackageFolder property with PackageWebTargetsPath
- Make overriding the location of .targets/assemblies easier
- Support .publishSettings file
- Applying multiple transforms breaks if passing parameters via command line
- Variable substitution is not working for app_data HOT 3
- Add CI build HOT 6
- Can't get a good deploy command to come out of this HOT 3
- Support (or Documentation) For Use With Visual Studio Online Build (vNext)
- Unable to resolve relative paths within project while running test from nunit 3.0 console HOT 2
- Support for SetParameters.xml approach
- Use Pacakage Target in msbuild file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from package-web.