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

Enabling gulp triggers on build in project.json for .net Core

I would like to configure my project build so that it triggers a different gulp task on compile in project.json but I can only set the scripts property unconditionally as far as I can see and I have been hunting high and low online to no effect. I…
Keith Jackson
  • 3,078
  • 4
  • 38
  • 66
0
votes
2 answers

Adding full .NET to .NET Core library

I am writting a .NET Core library I intend to publish on NuGet, full .NET compatible. To do so, I set the project.json as follow: "frameworks": { "netstandard1.1": { "imports": "dnxcore50" } } I want that library to use a full .NET library…
fharreau
  • 2,105
  • 1
  • 23
  • 46
0
votes
0 answers

Upgrade to NuGet 3.4.4-rtm-final breaks package restore

I recently updated my version of NuGet to 3.4.4-rtm-final using nuget update -self Now that I've done this, nuget restore MySolution.sln fails with the following error: Error reading 'c:\...MySolution\MyProject.NetCore.Tests\project.json' at line…
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
0
votes
2 answers

How to reference a specific version of NetStandard in project.json?

I am struggling to figure out how to force the npm (Nuget Package Manager) to resolve a specific version of the NetStandard1.X platform. I am trying to use Serilog but the version of .NetStandard it supports is v1.3. Is there any way to force this…
IbrarMumtaz
  • 4,235
  • 7
  • 44
  • 63
0
votes
0 answers

Why do I need to set the "runtimes" for tests library in .NET Core?

I created a VS 2015 U3 solution that contains a netstandard1.3 PCL library X and a netcoreapp1.0 test library Y. I'm using MSTest (dotnet-test-mstest and MSTest.TestFramework). This is src\X\project.json: { "supports": {}, "dependencies": { …
Mikhail Orlov
  • 2,789
  • 2
  • 28
  • 38
0
votes
2 answers

project.json scripts events can delete folders?

I am trying to delete a folder on post compile but cant make rd or del commands to work. Is there a way to delete a folder and subfolders from the scripts events?
Nauzet
  • 661
  • 8
  • 20
0
votes
1 answer

Import and Execute MSBuild .targets File in project.json

I am taking the plunge and am converting a (Profile 7) PCL to the new .NET Standard format. I mostly have everything working. (This is a great article -- but perhaps a little dated -- if you are interested). My only remaining issue is that it…
Mike-E
  • 2,477
  • 3
  • 22
  • 34
0
votes
1 answer

Dependency conflicts in asp.net core on mac

I am new to .NET and I don't know how to debug these kind of troubles when it comes to dependencies. I am trying to run a dotnet core application in mac, below you can see the output of the terminal when I execute dotnet restore and later you can…
dimitrisd
  • 566
  • 1
  • 9
  • 30
0
votes
1 answer

How do I turn off the warning "use the new keyword if hiding was intended"?

Ref: "Use the new keyword if hiding was intended" warning This time, the warning needs to go away without editing file to add the new keyword. Why? Generated derived class.
Joshua
  • 40,822
  • 8
  • 72
  • 132
0
votes
0 answers

How can I define a Conditional Compilation Symbol in a .NET Core project programmatically when my NuGet package is installed?

I have a NuGet package that contains a PowerShell script which sets a conditional compilation symbol on the target project when the package is installed. This works fine for all projects except for those that use project.json files (e.g. .NET Core,…
feO2x
  • 5,358
  • 2
  • 37
  • 46
0
votes
0 answers

project.json and Microsoft.Bcl.Build

I would like to use project.json in a net4.0 library instead of package.config It s working perfectly well but for use of Microsoft.Bcl.Build which enable the use of async/await. Any idea how I can correct this. Thanks
Bhugot
  • 666
  • 5
  • 2
0
votes
1 answer

UWP Windows-10 VS-2015 doesnt auto generate project.lock.json file

I am trying to run my UWP app on Windows-10 with Visual Studio 2015. The issue is, VS-2015 doesnt seem to generate this hidden file project.lock.json Since this file is not generated, I hit this error: Nuget Errors The workaround which I am using is…
0
votes
2 answers

.NET Core: Is there an equivalent of MSBuild tasks in the new project.json format?

I'm a big fan of MSBuild tasks like GitVersionTask, xUnit.MSBuild or OctoPack and use them to version, test and package my assemblies during build time. Here's my question: Is there an alternative or equivalent to MSBuild tasks in the new .NET Core…
0
votes
1 answer

IPrincipal cannot be found in dnxcore50

I try to use IPrincipal in dnxcore50. Although it works fine on Windows, I get the following error when running dotnet restore on OS X: Unable to resolve System.Security.Principal (>= 4.0.1-rc3-23829) for DNXCore,Version=v5.0 (osx.10.11-x64). My…
Ramon de Klein
  • 5,172
  • 2
  • 41
  • 64
0
votes
1 answer

Converting a project to PCL & .NET Core gives CS0433 Error

I've taken an existing project https://github.com/cskardon/Neo4jClient/ and attempting to port to dotnet core as peeps are asking for this. So far - I've added a PCL project (uwp, dnxcore50, net46) and a shared project - shifted all the code to the…
Charlotte Skardon
  • 6,220
  • 2
  • 31
  • 42
1 2 3
12
13