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
41
votes
1 answer

Can I build an "old school" PCL with DNX/DNU?

In Noda Time 1.3.1, our .csproj file referred to Profile 328 and our .nuspec file put the results in lib\portable-net4+sl5+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1+XamariniOS1 For Noda Time 2.0, I've moved everything over to DNX/DNU (soon to be…
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
28
votes
1 answer

What is the expected behaviour of parent-relative directories in global.json?

(Now raised as DNX issue 3206...) DNX environment: 1.0.0-rc1, Windows 10 x64. Imagine I have three solutions: Application1 Application2 Common Each of these solutions has multiple projects in; it wouldn't make sense to have all the projects in a…
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
15
votes
3 answers

"Path too long" when publishing asp.net 5 from Visual Studio 2015

This seems to be a common problem and I found several Stack Overflow questions, but they all seem to pertain to MSBuild. I'm trying to publish by right-clicking on my asp.net 5 rc1 project in Visual Studio and invoking a file system-based publish…
Christopher
  • 10,409
  • 13
  • 73
  • 97
13
votes
5 answers

dnu restore from from Visual Studio 2015 Update 1 RC

Whenever I modify packages through the project.json file my references area says "Errors - see Error List". The error list will say "Dependencies in project.json were modified. Please run "dnu restore" to generate a new lock file. In there a way to…
eddpoints
  • 183
  • 3
  • 8
11
votes
0 answers

Uninstall Mono, .NET Core and all related stuffs from OSX

Hei guys, i was following this tutorial in order to run .NET Core in my OSX: If you choose to install Mono, select the universal installer to make sure you get the x64 version. Edge.js requires Mono x64. If you choose to install CoreCLR], follow…
user5526811
10
votes
1 answer

ASP.NET 5 EntityFramework.Core 7.0.0-rc1-final issue - Compiler wants 7.0.0.0 to be referenced which is not found

I am having the same issue. I have added the following dependencies in my project.json file: "dependencies": { "EntityFramework": "7.0.0-beta4", "EntityFramework.Core": "7.0.0-rc1-final", "EntityFramework.SqlServer":…
Subrata Sarkar
  • 2,975
  • 6
  • 45
  • 85
10
votes
3 answers

How to exclude files from being published in ASP.NET Core?

I have noticed that when I publish the new ASP.NET project, then it puts all the non-code files in the root folder in packages. E.g. these files end up there: Publish profiles gulpfile.js There is no real need to include those in the published…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
10
votes
2 answers

Executing Gulp task(s) only when publishing ASP.NET 5 web application

What would be the best way to execute Gulp tasks only when publishing an ASP.NET 5 web application? Do I need to add a custom build event that executes a Gulp command? cmd.exe /c gulp -b "C:\Projects\ProjectName\Source\ProjectName.Web" --gulpfile…
Jon
  • 4,925
  • 3
  • 28
  • 38
7
votes
1 answer

Running a Dnx Console App with Project Dependencies as Global Command

I have a DNX console application that references a class library project. I am trying to publish this and install it as a global command. I am doing this on Windows 10 OS. Console Project Program.cs namespace Vert.Commands { public class…
Vadim Rybak
  • 1,677
  • 20
  • 25
6
votes
2 answers

ASP.NET 5 (vNext) Deployment via TFS 2015

We're trying to work through the new tool chain for building and deploying an ASP.NET 5 (vNext) CoreCLR web site to a server cluster. Between the new compilation changes and the changes to TFS, I'm not sure how everything now gets built and…
user1142433
  • 1,413
  • 3
  • 17
  • 34
6
votes
1 answer

dnu restore error (Could not find part of a path..)

Anyone attempt using entity framework-beta8 migrations? Everytime I run the dnx ef command I get the following "Error: . Please run dnu restore to generate a new lock file" running dnu restore then gives the error Could not find a part of the…
6
votes
1 answer

DNU Restore gives lots of "HTTP request timed out"

I'm trying to run the samples from https://github.com/aspnet/home. But I'm having problems updating the references. The restore is very slow and fails for some packages: GET…
pomber
  • 23,132
  • 10
  • 81
  • 94
6
votes
2 answers

Caching NuGet packages on VSO's Host Agent Pool

When running on builds in VSO's new host agent pool, I have a powershell script to restore the NuGet packages for each project.json using dnu restore. This process can easily take more than 2 minutes. Is it not possible to somehow cache these…
Dave New
  • 38,496
  • 59
  • 215
  • 394
5
votes
0 answers

dnu restore fails on C# class library with "ambiguous" error

I am running Visual Studio 2015 and trying to add a simple class library, NettlesLibrary.xproj, into a solution that uses the latest MVC. I am unable to get the references working so I'm trying to run: dnu restore in the NettlesLibrary…
empty
  • 5,194
  • 3
  • 32
  • 58
5
votes
1 answer

DNU publish --no-source from MSBuild

Is it possible to invoke dnu publish with the --no-source attribute from MSBuild when triggering the FileSystemPublish target? MSBuild command: /t:Build,FileSystemPublish /p:PublishConfiguration=$(BuildConfiguration)…
Dave New
  • 38,496
  • 59
  • 215
  • 394
1
2 3 4 5 6