Questions tagged [project.json]

project.json is the project definition file used by .NET Core in version 1.0 and earlier.

project.json will be deprecated in Visual Studio "15" and beyond. See: Changes to project.json

Additional Reading

183 questions
8
votes
1 answer

How to run XUnit tests in the project.json and dotnet tfm world

Background: Recently I switched from the "old" world to the new project.json world, because new is always better ;) Currently 2 out of 3 projects can use the "dotnet" target framework moniker, the other one needs the full .NET framework (net46). I…
Robert Muehsig
  • 5,206
  • 2
  • 29
  • 33
7
votes
5 answers

The specified deps.json '$$$' does not exist

I am rather new to the .NET Core, and I got a .NET Core WebAPI project MyWebApp, also, i have .Net Core Class Library project MyLib using EntityFrameworkCore When i try to use Add-Migration, i get the error The specified deps.json…
7
votes
2 answers

Referencing .NET 4.6.2 class library from .NET Core app

I'm using VS Update 3 (14.0.25425.01). Here's what I've done: Create ASP.Net Core Web Application (.Net Core) Create Class Library .Net 4.6.2 Add net462 to frameworks, netcoreapp1.0, imports in project.json Right click on ASP.Net Core app, click…
chdev77
  • 505
  • 4
  • 18
7
votes
3 answers

"The library 'hostpolicy.dll' required" if run from deploy folder, but emitEntryPoint is true

I created a Web API project using the default ASP.NET Core Web Application (.NET Framework) template and then published to local folder using VS. Now if I call dotnet application.exe in the console, I receive the following error: A fatal error was…
Set
  • 47,577
  • 22
  • 132
  • 150
6
votes
2 answers

Any way to run the scripts in project.json just like in package.json?

So as the title says, i am wondering if its possible to do the equivalent of "npm run " with the dotnet cli?? e.g. this snippet is from my project.json: { "dependencies": { "Microsoft.NETCore.App": { "version": "1.1.0", "type":…
DenLilleMand
  • 3,732
  • 5
  • 25
  • 34
6
votes
1 answer

Add a project.json based project to a .sln file without using Visual Studio

We have developers that are using VS Code on Linux, Windows, and Mac. We also have developers that are using full Visual Studio on Windows. A problem arises when the former (including me) do not add their projects to the solution, and the latter…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
6
votes
1 answer

Using net451 libraries in an ASP.NET Core application (RC2)

I'm trying to upgrade my ASP.NET 5 RC1 projects to ASP.NET Core RC2 projects. I'm having some issues because I'm using libraries that do not yet support .NET Core so I have to run on the full framework. This has worked fine in RC1, but I'm not able…
henningst
  • 1,664
  • 2
  • 20
  • 30
6
votes
1 answer

How do I reference a UWP+NET46 portable library from a .NET 4.6 console application?

I have a portable class library project that targets .NET 4.6 and Universal Windows Platform. This class library contains just one class with the following line of code in its constructor: Directory.CreateDirectory(Path.Combine(Path.GetTempPath(),…
6
votes
1 answer

How to switch to full .NET stack in ASP.NET 5 MVC 6 project

I created a new ASP.NET 5 MVC 6 (vNext) project in VS 2015. I imported some classes from another project, but looks like the DNX is missing some classes that are very essential to me. Can I choose to use the full .NET stack instead of the DNX? What…
5
votes
3 answers

Services.AddOptions() ambiguous

I am busy migrating our ASP.NET Core API from RC1 to RC2. RC2 requires that we configure the following when using IOptions: services.AddOptions(); But I get the following compilation error: Error CS0121 The call is ambiguous between the…
Dave New
  • 38,496
  • 59
  • 215
  • 394
5
votes
1 answer

Use solution relative packages folder with NuGet and project.json

I have a solution with a packages folder checked into source control. I changed some of the projects to use a project.json file rather than packages.config for defining dependencies. The projects are all normal .csproj projects, not DNX .xproj…
4
votes
2 answers

What is the source of these ASP.NET Core dependency warnings?

Following an Update-Package run of my solution, my ASP.Net Core projects are cluttered with warnings following the pattern outlined below. I am at a loss as to identify the root cause of this problem. Pattern: Dependency Conflict. [project name]…
Sigurd Garshol
  • 1,376
  • 3
  • 15
  • 36
4
votes
1 answer

Using .NET Core library in .NET 4.5.2 console application

I have two projects: one project is built on .NET Core and the other one is built on normal .NET Framework 4.5.2. I want to know how I can use my .NET Core cass library in my .NET Console Application. Here is my project.json: { "version":…
Erick Boshoff
  • 1,443
  • 2
  • 18
  • 30
4
votes
1 answer

Copying files on compile for Asp.net Core 1.0 project

I'm creating a REST Api with Asp.Net Core 1.0 and I want to copy a file which is not in included in the project to the output path when the project is compiled. I can't figure out how to do it though. I have tried to use "buildOptions: copyToOutput"…
Janni Kajbrink
  • 661
  • 2
  • 7
  • 21
4
votes
1 answer

Is it possible to work with .NET Core with .NET Framework

I've been bashing my head trying to create a new project that's entirely .NET Core, a project that is runnable in different environments, but I need to add as references a lot of my previous projects that work in strict .NET Framework (4.5). So far…
Midnight_Blaze
  • 481
  • 6
  • 29
1 2
3
12 13