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
2
votes
0 answers

Switching multi-framework library from csproj to xproj/project.json

I'm attempting to move an existing library that currently supports multiple targets: Profile259, .NET 4.5, .NET 4.0 Client Profile and NetCore451 (Win 8.1+). Depending on the target framework there are two sets of direct dependencies I require:…
rgmills
  • 383
  • 1
  • 8
2
votes
1 answer

Visual Studio common project.json

I have a question to the new Microsoft Projects in Visual studio 2015. At the moment each project has now is own project.json file where you can define Version author url etc. My question is now is it possible that we can have some of the…
Michael Kröschel
  • 240
  • 1
  • 4
  • 13
2
votes
1 answer

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.Framework.Runtime.ILibraryManager'

I have the following project.json file... { "webroot": "wwwroot", "version": "1.0.0-*", "dependencies": { "EntityFramework.Commands": "7.0.0-beta5", "EntityFramework.SqlServer": "7.0.0-beta5", …
user3587624
  • 1,427
  • 5
  • 29
  • 60
2
votes
2 answers

ASP.NET 5 and Build Action

I have a Web Site and Class Library built with ASP.NET 5. The Class Library depends on an set of external files (XML, EXEs, etc.). Those dependencies are added as part of the project and visible in the Solution Explorer of Visual Studio. My Web Site…
Martin
  • 39,309
  • 62
  • 192
  • 278
2
votes
1 answer

System.Numerics when targeting net45

From what I've understood, it should be possible to target net45 with the new xproj/project.json project settings in Visual Studio 2015. So, I created a new project, under web templates in the file->new project menu, edited the project.json and…
Stenkross
  • 557
  • 4
  • 9
1
vote
1 answer

How can I use runtime configuration in Angular 15, so I can also provide values in AppModule imports?

I am breaking my head for 2 days now to find a way I could read a config.json file in my assets folder. I tried reading this file while bootstrapping in main.ts so I could somehow use the value in my AppModule in a block like this: imports:…
1
vote
1 answer

Referencing Error in Visual Studio while making an Android app

Here is the error being written /Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(5,5): Error: Your project is not referencing the "MonoAndroid,Version=v9.0" framework. Add a reference to…
user10828093
1
vote
3 answers

nuspec contentFiles not added to a project

I have a web project (mvc5) with a project.json inside. Also, I have a nuget package. Inside this package (besides the dll reference) I have some Content files (cshtml files, css, javascript etc). There are 2 goals to achieve: After installing the…
DolceVita
  • 2,090
  • 1
  • 23
  • 35
1
vote
1 answer

UWP Automated build error: Your project is not referencing the "UAP,Version=v10.0.10240" framework

I upgraded my Nuget version on my UWP automated build from V3.5.0 to V4.0.0 After doing so my UWP build I got the following error: error : Your project is not referencing the "UAP,Version=v10.0.10240" framework. Add a reference to…
JKennedy
  • 18,150
  • 17
  • 114
  • 198
1
vote
0 answers

Dotnet Publish fails with Microsoft.AspNetCore.Server.IISIntegration.Tools from NuGet (CommandLineTools)

I was looking for about 3 days and I found no solution for my problem. We have a web app which shall be published to the IIS. For this case we have a batch file which runs a ps1-file with Powershell.exe which runs dotnet publish. When I run this…
swimagers
  • 33
  • 1
  • 4
1
vote
1 answer

Referencing PCLCrypto in a NetStandard1.3 project

I'm trying to add a reference to the package PCLCrypto (2.0.147) in a project using NetStandard 1.3 After I add the import "portable-net45+netcore45+wpa81" in the project.json, it builds, but keep showing the errors. project.json: { "supports":…
1
vote
1 answer

Can't add nuget to xamarin.android project with project.json

I try to add the nuget package MPAndroidChart ( https://www.nuget.org/packages/MPAndroidChart/3.0.1) to my android project. But I always get the message: Package MPAndroidChart 3.0.1 is not compatible with monoandroid71 (MonoAndroid,Version=v7.1) /…
1
vote
2 answers

Unable to build new projects in .NET Core using project.json but existing ones build/restore fine

So the short version here is that my old existing repo's that utilize a global.json and project.json (all Nancy projects) work perfectly fine with no issue. However, if I attempt to create a new folder structure with the identical global.json,…
1
vote
2 answers

How do I reference net40 framework assembly from .NetStandard class library?

Under the project.json project system I was able to specify framework assembly dependencies per framework. The dotnet docs (now out of date) show the below example. { "frameworks":{ "net20":{ "frameworkAssemblies":{ …
Dav Evans
  • 4,031
  • 7
  • 41
  • 60
1
vote
0 answers

Dependency conflict in project.json

We do our versioning based on the year,month and day. We are constantly updating the versions because we use the libraries in nuget packages and we need to be able to differentiate between versions. I am getting the warning : Dependency specified…
Daniel Cumings
  • 863
  • 8
  • 14