Tagged Questions
2
votes
1answer
46 views
Error on Project Startup relating to Entity Framework in Package Manager Console
This error has perplexed me for the last few days and can find little to no information on Google regarding this. This started the other day when I was assigned a new laptop by work and I'm ...
0
votes
1answer
45 views
Open a Solution from the Package Manager Console
I'm trying to automate the process of opening a solution from source control.
I have VS12 open, but no solution or project open. Is it possible to change directories and then open a solution from ...
0
votes
1answer
42 views
Nuget Package Manager Console equivalent for Manage checkbox
When clicking "Managing Nuget Packages for Solution", the Nuget Package Manager UI allows to Manage an installed package. Checking a checkbox next to a project installs the same version of that ...
1
vote
1answer
58 views
Use nuget to install PowerShell modules at user machine
I am looking for a way to distribute Powershell modules, and trying to use nuget.
I have tested to make a commonstuff.pm1 file.
I have make a nuget package as:
put commonstuff.pm1 > Content ...
0
votes
2answers
82 views
Nuget Powershell Rename content file
I am looking to rename a file that I have loaded via a nuget package:
I know I can get the file like this:
$f = $project.ProjectItems | ForEach-Object { $_.ProjectItems } | where { $_.Name -eq ...
0
votes
1answer
33 views
adding custom parameter to install-package
I am building a nuget package which uses an install.ps1 script in the tools folder. I want to pass parameters into this install script in the install-package command.
So running in package manger ...
0
votes
0answers
30 views
Removing PropertyGroup during Nuget uninstall.ps1
I've got a Nuget package that adds some MSBuild entries to the project XML during install. This works fine, producing the following (among other entries):
<PropertyGroup>
...
0
votes
0answers
40 views
NuGet init.ps1 executing twice
I am following the solution found at "Create a NuGet package that shows update notifications" to get a notification of a nuget package update.
However the init.ps1 script is executing twice.
I ...
0
votes
1answer
52 views
Kill Process in VS2012 Package Manager Console
Doe anyone know how to kill a process in the VS2012 Package Manager Console. Pressing Control-C does not seem to kill processes like it does in the standard powershell.
1
vote
2answers
73 views
Powershell runtime
I'm running VS 2010 under Windows 8. After installing NuGet, and running Package manager console I get the following message:
Error: The Package Manager Console requires PowerShell 2.0 runtime, which ...
2
votes
1answer
66 views
PowerShell module for handling Visual Studio Object Model from within NuGet Install.ps1/Uninstall.ps1 scripts
I'm trying to create a NuGet package that contains both managed (assemblies) and unmanaged (native DLLs) binaries, and also support several platforms (x86, x64).
To have a better understanding of how ...
0
votes
1answer
151 views
Execute PowerShell script from custom project template
I am currently creating a project template and I was wondering if it would be possible to execute a PowerShell script after the project has been created (similar to the install.ps1 in NuGet packages).
...
0
votes
1answer
104 views
Deliver command-line tool via NuGet for use in post-build events in Visual Studio
I've developed a command-line utility that takes .NET assemblies as input and generates XML as output for use by another product.
Ideally I'd have it:
Delivered via NuGet as a solution-level ...
2
votes
1answer
145 views
NuGet Package Manager Console unable to load PowerShell
After performing an in place upgrade from Windows 7 Pro to 8 Pro I have been unable to get NuGet's package manager console to run in Visual Studio 2012 Pro. The error I receive is:
The following ...
0
votes
2answers
43 views
Build Project from Package Management Console
I'm trying to create a PowerShell script that uses the Package Management Console that will, among other things, build a project from the active solution.
I'm able to get the project reference suing
...
2
votes
1answer
47 views
Remove solution folders using NuGet uninstall.ps
In my NuGet package, I add a solution folder using the method shown here:
http://stackoverflow.com/a/6478804/1628707
Here's my code to add the solution folder, in Init.ps.
$solutionFolder = ...
0
votes
1answer
125 views
Nuget how to add files to solution folder
I have a package that contains some files that I want added at a solution level rather than a project level. I am able to add a folder at the solution level, but cannot determine how to add my files ...
1
vote
1answer
86 views
Why is Nuget randomly crashing when restoring packages via command line?
We don't commit the packages folder to our repositories. Additionally, rather than restoring packages at build time (since it can increase build time), we restore packages with the following ...
2
votes
2answers
332 views
Nuget PowerShell script to modify Global.asax.cs
I'm building a nuget package for my company MVC4 template. I have run into an issue where I need the Global.asax.cs to be modified to add these two lines:
using System.Web.Optimization;
at the top, ...
0
votes
1answer
119 views
Console.WriteLine from with the Nuget Package Manager Console
If I type the following code into a typical PS window, I am able to correctly get "asdf" in the output:
[System.Console]::WriteLine("asdf")
But if I do it in the NuGet Package Manager Console ...
0
votes
0answers
84 views
Invoking commandlets in Nuget Powershell console in Visual Studio 2010 and 2012
I would like to call any available commandlets and other features and even load additional modules from my Add-in/Extension.
I would also like to evaluate objects created by executing commandlets.
3
votes
1answer
153 views
Is there any hook between Nuget Powershell and Visual Studio 2010 or 2012 Extension so I can issue a Powershell commands from my extension
Let's say that i want to build a custom editor within Visual Studio.
Let say it can be an visual XML editor, a hierarchical tree editor with checkboxes or a DSL editor (with toolbox and drag and drop ...
2
votes
2answers
321 views
Use NuGet powershell commandlets from outside Visual Studio
I was trying to use my favorite source control from Package Manager console in Visual Studio 2010. I've faced with issues described in another topic. For now best answer is to move all command-line ...
2
votes
1answer
155 views
Powershell displays some git command results as error in console even though operation was successful
When I execute Git commands in powershell everything is working great except one minor difference between the powershell console and the nuget console. The output from a "git push" is displayed in red ...
3
votes
1answer
118 views
posh-git doesn't show branch in package manager console
I installed posh-git for Windows PowerShell and it works great in the shell. However, it is supposed to work in the package manager console as well. It does work but it doesn't show the current branch ...
0
votes
1answer
30 views
Package Manager Console search on Id only
If I enter this command...
Get-Package -ListAvailable -Filter newtonsoft
I get a listing of all packages that reference the string 'newtonsoft' in their Id or Description/Release Notes fields. Is ...
0
votes
1answer
249 views
How can I reload a visual studio project thru a nuget powershell script
In Solution Explorer 'DependentUpon' project items are normally disabled as children of the other item (ex. web.config / web.Debug.config).
The problem I have is when items are dynamically added via ...
0
votes
2answers
174 views
Running the Clean, Build and Rebuild through the Package Manager Console
I want to run the Clean, Build and Rebuild commands through the Package Manager Console in Visual Studio but so far I haven't been able to find how.
The following command gets me the first project ...
0
votes
1answer
113 views
List all available versions of a specific package in NuGet Package Manager Console
What NuGet PowerShell command will return a list of all versions of a specific package?
I have tried the following, but it only returns one version of NUnit along with a number of other (un)related ...
0
votes
1answer
275 views
Using nuget to update project files outside of Package Manager Console
Nuget.exe only supports managing packages at a file system/configuration level. The powershell commands command the magic that update the .proj files.
With that said, i need the ability to update a ...