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

Testing .Net Core Library with xUnit

I am creating a .Net Core Library that can be consumed by ASP.NET Core Application. By default Visual Studio create project.json as below { "dependencies": { "NETStandard.Library": "1.6.0" }, "frameworks": { "netstandard1.6": { …
LP13
  • 30,567
  • 53
  • 217
  • 400
4
votes
1 answer

C++ project dependency for .NET Core project

I have solution with .NET Core project and C++ project. .NET Core project uses compiled C++ library via interop and DllImport. How can I configure my build process properly? I would like to have: Native library is built Native library is copied to…
Alexander Buts
  • 561
  • 1
  • 4
  • 7
4
votes
1 answer

Which Versions of Windows Server Match the .NET Core Runtime RID's

I am targeting the following runtimes my .NET Core web application in my project.json file: "runtimes": { "win10-x64": { }, "win8-x64": { }, "win7-x64": { } } Which versions of Windows Server do the above runtime RID's correspond to? The…
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
4
votes
0 answers

How to copy Nuget package libraries to output folder with VS2015U2 and project.json?

What I have: VS2015U2 Class library project project.json What I need: I need to copy only some(not all) of the Nuget references to the output folder. Note: This could be easily done with the "CopyLocal" when using packages.config. Note2: I found…
f0rt
  • 1,801
  • 3
  • 17
  • 30
4
votes
1 answer

Gulp VS2015 .Net5

Im trying to learn Gulp and have been unable to successfully run tasks via the Task Run Explorer. No tasks appear and the Explorer shows the error: Failed to load, see output window for more information. When checking the output window it appears…
HendPro12
  • 1,094
  • 3
  • 17
  • 50
4
votes
3 answers

Design-time T4 templates in ASP.NET 5 (VS 2015)

I can't seem to find a way to make T4 templates in VS 2015 RTM, in an ASP.NET 5 (vNext) project. I even installed the T4 toolbox for Visual Studio 2015 extension, but the tt templates are not transformed. The property Custom Tool doesn't appear in…
3
votes
0 answers

.NetCore project.json "scripts" does not run any command

I need a simple postcompile script to work, but i cant seem to get any script to work.. in my project.json i have the following: "scripts": { "postcompile": "echo before building", "precompile": "echo after building" } but when i build,…
Tomer W
  • 3,395
  • 2
  • 29
  • 44
3
votes
1 answer

Auto update nuget package from a local folder

My .NET Core project references a class library from another project. I publish the nuget package to a local folder like this: "scripts": { "postcompile": [ "dotnet pack --no-build --configuration %compile:Configuration% -o…
dtksmsl
  • 239
  • 4
  • 14
3
votes
2 answers

How to fail the build from project.json scripts

I have a ASP.NET Core webapp, that builds frontend code using webpack. Webpack is called via npm, which in turn is called via the scripts section in my project.json: { ... "scripts": { "postcompile": "npm run build" } } The "npm run…
Schweder
  • 1,464
  • 2
  • 13
  • 19
3
votes
2 answers

VS2015 project.json compile exclusion

In Visual Studio 2013, I was able to exclude some .cs file from being compiled by using a compiler constant and modifying the project's .csproj file. Something like this: -- myproject.csproj ... …
3
votes
0 answers

Breakpoint not hit in .NET Core ASP.NET MVC WebApi when using Visual Studio Core when targeting .NET 4.6.1

I'm writing a .NET Core MVC Application targeting Framework 461 instead of .NET Core. Reason: I am using a library which is not yet ready for .net core but will be soon. I am doing this in Visual Studio Code and have several questions: Debugging…
Sebastian Zolg
  • 1,921
  • 2
  • 14
  • 35
3
votes
1 answer

How do compiler directives work with project.json in Visual Studio 2015

I'm creating a reusable library that targets several platforms (.NET 4.0, .NET 4.5, .NETStandard1.0 and .NETStandard1.3). I used to maintain this library in 2 separate projects; one project compiled against .NET 4.0 and .NET 4.5 and a second project…
Steven
  • 166,672
  • 24
  • 332
  • 435
3
votes
1 answer

use project.json with xamarin.android

I try to use the new project.json file format with a Xamarin Android project. I made all in the same way I did for the PCL's I have in this project, except for the frameworks of course: { "dependencies": { }, "frameworks": { …
NPadrutt
  • 3,619
  • 5
  • 24
  • 60
3
votes
1 answer

getting weird compilation errors - .Net Core

I am not sure what i have done recently. But this was working until a week ago. Suddenly when i tried to compile the project. It is giving me 8463 compilation errors. few of them are given below. Please help me out if any of you have faced this…
Venkata Dorisala
  • 4,783
  • 7
  • 49
  • 90
3
votes
1 answer

Unable to resolve 'Microsoft.WindowsAzure.Storage (>= 7.2.0)' for '.NETCoreApp,Version=v1.0'

I try to use Windows Azure Storage inside my dotnet core system (my first dotnet core project). I tried the unit test for Azure Storage with dotnet core and it builds well. But when I try to include the dependency to Azure Storage in my…
hugo
  • 1,829
  • 1
  • 18
  • 47