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

Microsoft.netcore.app Dependency unable to be restored in VS 2015 (not resolved)

I am a newbie to ASP.net core and trying to work on my tutorials. I am creating a .net core project and upon creation errors in package restore occur, I have already installed VS 2015 update 3 and also .net core tools preview 2. The project.json…
Ayman
  • 13
  • 6
0
votes
1 answer

Create a folder after build using project.json in NET Core

I know you can use "copyToOutput" in project.json to copy files to a project's output directory, but is it possible to copy over an entire folder?
Roka545
  • 3,404
  • 20
  • 62
  • 106
0
votes
1 answer

Why does adding an "imports" to project.json break this?

Using Visual Studio 2015 update 3, I create a portable class library. Then I switch it to target .NET Standard. So the project.json file looks basically like this: "dependencies": { "Microsoft.NETCore.Portable.Compatibility": "1.0.1", …
Eric Sink
  • 342
  • 1
  • 7
0
votes
0 answers

Dependencies lost referencing NET Standard lib from Xamarin Android

It is possible to use NET Standard libraries in Xamarin.Android projects. But since Xamarin.Android projects do not use project.json yet, all dependencies of included NET Standard libraries are lost. While there is the same problem with NET…
0
votes
1 answer

How to build for netcore50

I want to build a console app, which uses Microsoft.AspNet.SignalR.Client . However it seems, that SignalR.Client is not available on nuget for netcoreapp1.1 : Package Microsoft.AspNet.SignalR.Client 2.2.1 is not compatible with netcoreapp1.1…
wx78
  • 21
  • 3
0
votes
1 answer

Could not load type 'System.Reflection.Metadata.ISignatureTypeProvider from assembly System.Reflection.Metadata

I'm currently trying to experiment with the Roslyn Workspaces API on OSX and keep running into the following exception when calling CreateRoslynWorkspace: "Could not load type 'System.Reflection.Metadata.ISignatureTypeProvider`1' from assembly…
Joseph Woodward
  • 9,191
  • 5
  • 44
  • 63
0
votes
1 answer

Debugging in VS Code fails: The project file could not be loaded (MSB4025)

I'm trying to debug a NETCore project in VS Code but launching the debugger gives me the following error: MSBUILD : error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.…
Chrille
  • 1,435
  • 12
  • 26
0
votes
1 answer

.NET Core project.json copyToOutput file in parent directory

I need to include a file in my build output. This file is two folders above project.json. If I specify this using "../../", the config file is copied over, but to the wrong location. Instead of being copied over to /bin/Debug/net461, it's placed two…
0
votes
1 answer

project.json exlcudeFiles not working

I have a project that I have made using .net core version 1. It is a SPA and I have a file that I want during testing, but when publishing I want it to be excluded. I have read:…
r3plica
  • 13,017
  • 23
  • 128
  • 290
0
votes
1 answer

How I can know which imports add in project.json?

In project.json now we can specify different frameworks. Now the complexity is increased due to the several options to target. You may fill framework, runtime and dependencies fields making the system much more flexible but so much complex too…
0
votes
1 answer

Error while restoring Options.ConfigurationExtensions package

I am trying to implement options pattern as mentioned in this link - https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration#options-example For this, started with adding below in my…
439
  • 720
  • 2
  • 7
  • 14
0
votes
1 answer

.net core aws eb deploy in Visual Studio 2015 cannot resolve dependency

I have a .net core project in Visual Studio 2015 and I am trying to deploy to an AWS EB environment and I am getting about 400 errors about not being able to resolve dependencies, such as: project.json(19,66): error NU1001: The dependency…
0
votes
1 answer

AspNetCore, project.fragment.lock.json, and multiple configured platforms

I have an AspNetCore project which references another project, which builds for both the AnyCpu and x64 platforms, and I need both platforms supported (I have legacy projects which need AnyCpu, but only the x64 platform is supported by AspNetCore). …
rrreee
  • 753
  • 1
  • 6
  • 20
0
votes
1 answer

project.json > scripts> precompile - use macro value in script

What I want to do: Execute some batch file in the pre-build event of a .NET core library. The batch is located in the project directory, and expects the target path as a parameter. I have found a way to do this in the context of a project.json…
0
votes
1 answer

.Net Core 1.0 Relative Project Dependencies Not Found

I have the project structure: /src - common - common-x + project.json - module-a - project-a + project.json - project-a-tests + project.json + global.json I'm trying to include the common-x project using…
Chris Kdon
  • 916
  • 1
  • 14
  • 26