Tagged Questions
11
votes
1answer
1k views
How Can I “Update-Package” to a Previous Version in the Package Manager Console?
I have a version of a package installed in my project but during testing I have found a problem with it. I tried the obvious thing Update-Package -Id Foo.Bar -Version 1.0.0 -Force but the ...
6
votes
1answer
606 views
Nuget : How can i change property of files with Install.ps1 file?
I am creating Nuget package and for that i have created Nuspec manifest file and in content folder i have out 2 files test.exe & test.config, now i would like to change property of these 2 files ...
4
votes
1answer
860 views
Remove folder & files from project using NuGet/Powershell
I am trying to remove the App_Start folder from my project during my NuGet package install. The documentation for NuGet here:
http://nuget.codeplex.com/wikipage?title=Creating%20a%20Package
Says:
...
4
votes
6answers
2k views
NuGet errors in Package Manager Console on MVC 3 File, New Project
So I installed the new MVC3 tooling update and attempted to create a new MVC3 web app. The project reports as being successfully created but if I bring up the Package Manager Console, I see the ...
3
votes
1answer
417 views
Do helper functions in a NuGet Packages init.ps1 have to be global?
I'm wanting to write a couple commands for the NuGet package manager console to insert Gists from GitHub. I have 4 basic commands
List-Gists 'user'
Gist-Info 'gistId'
Gist-Contents 'gistId' ...
3
votes
1answer
121 views
How can I add an AfterBuild event to a project when installing my NuGet package?
I have a nuget package which adds an executable that I need to run after a project builds each time.
I can manually add this by adding a section to each project file like so:
<Target ...
1
vote
1answer
129 views
Start VS2012 Package Manager Console from Powershell Command Prompt
Is there a way to start the package manager console from either the powershell command prompt or the windows command window?
I have some commands I need to run as administrator, and would rather just ...
1
vote
2answers
303 views
How can I get nuget (powershell) to insert <DependentUpon> elements in the target csproj file
I'm writing a nuget package for a windows service, the idea is that my colleagues can create a windows service install the package and all of the default logging settings, entlib libraries and other ...
1
vote
1answer
699 views
using msbuild within PowerShell to edit a csproj on the install event in NuGet
I saw a great example for what I'm trying to do on Daniel Cazzulino's Blog at Clarius. I’d like to do something similar to what he did.
I am trying to deliver some basic T4 templates via NuGet and ...
0
votes
2answers
584 views
Display Message Box to copy code section from it using Powershell script
I am building install.ps1 script for Nuget pacakge and would like to open popup message at the end with some message , i have already achieved by following.
...
0
votes
1answer
70 views
How to create reusable PowerShell functions in the Visual Studio solution
We are using some custom scaffolders in the Visual Studio 2012 solution as well as some built-in ones (e.g. Code First Migrations commands). We run then in the Package Manager Console and Using ...
0
votes
1answer
329 views
NuGet [Install-Package], NotImplementedException attempting package install or mvc 3 project creation
When attempting to install a NuGet package I get the error “The method or operation is not implemented.” This same operation works for both my colleagues. When creating a new Mvc 3 app, I get the same ...