Questions tagged [dnu]

The DNX Utility (dnu) command-line tool provides utility functions for package management in DNX projects.

The DNX Utility (dnu) command-line tool provides utility functions for package management in DNX projects.

79 questions
2
votes
3 answers

TeamCity DNU publish fails on path length too long

My DNU publish step is failing in TeamCity due to the path length eventually getting out of control: [14:35:29][Step 1/1] Using Package dependency Microsoft.Extensions.Configuration.FileProviderExtensions 1.0.0-rc1-final [14:35:29][Step 1/1] …
Benjamin Soddy
  • 557
  • 1
  • 6
  • 22
2
votes
0 answers

Using .net 5.4 and a dependency that is not supported

I am following the getting started ASP.NET 5 for Mac. (https://www.twilio.com/blog/2015/08/getting-started-with-asp-net-5-and-visual-studio-code-on-a-mac.html). I noticed that they are using Twilio: "dependencies": { "Twilio": "4.0.3" }, I…
allencoded
  • 7,015
  • 17
  • 72
  • 126
2
votes
1 answer

dnu wrap "Failed to resolve references" when trying to wrap .csproj based project for use from asp net 5 library

According to this excellent writedown of how to reference regular C# library projects in an asp.net 5 project, the DNU wrap command is the preferred way to do it. Unfortunately dnu wrap ".\Foo\Bar\MyProject.csproj" does not work, and just outputs…
Jonas S
  • 682
  • 7
  • 6
2
votes
1 answer

dnu restore : unable to restore all packages

When trying to restore packages, I am getting this error Error: FindPackagesById: System.Net.Http Response status code does not indicate success: 404 (Not Found). GET…
Sameer
  • 3,124
  • 5
  • 30
  • 57
2
votes
1 answer

Showing `dnu publish` exceptions in TeamCity Build Results

I've spent about 3 days to setup TeamCity to build and publish asp.net-5 project. Finally I did it by using dnu publish command to publish the site. I'm using the batch file to do it with following commands // stops the apppool for 'samplesite'…
AntonS
  • 341
  • 1
  • 8
1
vote
0 answers

Getting ASP.NET Core RC1, DNX & dnu on CI/build server after release of ASP.NET Core RTM

How do you get ASP.NET Core RC1, DNX & dnu on CI/build server now after the release of ASP.NET Core RTM - without installing Visual Studio 2015 Update 1 (and letting it fetch the RC1 runtime) on the server? Now that ASP.NET Core RTM is released, the…
1
vote
1 answer

Nuget config and dnu restore on fresh windows install

After getting a new server up and running, I tried to get a dnx project working. I ran dnu restore on a project, and get this error. Errors in C:\apps\ElasticIndexer\app\project.json Unable to locate Dependency TestApplication >= 1.0.1 Feeds…
DavidG
  • 469
  • 3
  • 12
1
vote
0 answers

How can you automate the update of a Nuget reference to latest version in an ASP.NET Core project?

I'm trying to automate the building of a ASP.NET Core application that has two types of dependencies to Nuget packages that are part of the same project: Direct dependency to a Nuget package also being actively developed as part of the…
Jim O'Neil
  • 23,344
  • 7
  • 42
  • 67
1
vote
1 answer

DNU Restore results in multiple "The file exists" warning and errors and eventually dies

I recently updated my VS 2015 to Update 2 and also did a dnvm update-self. After taking these actions I'm now unable to perform dnu restores. I see the following error for almost every package from both myget and nuget GET…
swannee
  • 3,346
  • 2
  • 24
  • 40
1
vote
1 answer

Nuget restore fails in Visual Studio 2015 Enterprise

I am trying to go through tutorial on Pluralsight for ASP.NET Core 1.0 Fundamentals from Scott Allen. I am using VS 2015. I created new ASP.NET 5 project with Empty template selected. However, when I try to build I see this error in VS My attempt…
azec-pdx
  • 4,790
  • 6
  • 56
  • 87
1
vote
1 answer

How to uninstall a package with dnu?

I can install packages into a dnx project with dnu install whatever, but I haven't been able to figure out how to uninstall a package. I tried just deleting the line from the project.json file and doing a dnu restore, but it appears to not have done…
Matt Tsōnto
  • 1,518
  • 1
  • 15
  • 30
1
vote
0 answers

Why does DNU publish not correctly publish wrapped projects?

I'm trying to dnu publish an ASP.NET RC1 web application which references a "wrapped" .NET 4.5.1 class library. When I publish it, a folder for the wrapped project is included in the output packages directory but it only contains a project.json file…
1
vote
1 answer

Making sure to always run the dnvm and dnu commands by adding to .bash_profile

I was following along Installing ASP.NET 5 and DNX post and here I'm stuck: Tip: Add the following to your .bash_profile and restart the Terminal. The first line will ensure that you can always run the dnvm and dnu commands. The second line works…
Zameer Ansari
  • 28,977
  • 24
  • 140
  • 219
1
vote
1 answer

Compile a single C# file using DNX/DNU

Is it possible to compile a single C# file using the new .NET cross-platform toolchain (DNX/DNU) without first making a project.json file? For example, with Mono you can do: mcs Program.cs The mcs command creates Program.exe if it finds a Main…
stuckintheshuck
  • 2,449
  • 3
  • 27
  • 33
1
vote
1 answer

ASP.NET 5 RC1 build error after "postrestore" when building on VSTS

I'm trying to do a dnu restore on my ASP.NET 5 RC1 application using the new build system available on Visual Studio Team Services (aka Visual Studio Online). My project.json contains a postrestore command as follows: "scripts": { "postrestore":…
neodymium
  • 3,686
  • 6
  • 23
  • 31