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

Building a C# library with msbuild and using project.json to manage nuget dependencies

So, I've been wrestling with this issue so perhaps somebody can shed some light. I'm creating a .Net library and it's going to pull in another library via NuGet. I've learned there are three patterns for specifying the Nuget dependencies depending…
0
votes
0 answers

global.json missing in visual studio 2017

I just noticed that whenever we create a new project with ASP.NET core application, global.json file is not added to the project anymore. Also, I do not see web.config file where I can keep configuration settings. Can somebody tell me how to add…
Amol
  • 341
  • 1
  • 3
  • 12
0
votes
1 answer

How to prevent proliferation of development dependencies with project.json floating versions?

I have a test utilities project (call it Utilities.Test) that specifies a nuget package as development dependency in its project.json file: { "dependencies": { "devdep": { "version": "*", "type": "build" } }, …
ket
  • 728
  • 7
  • 22
0
votes
2 answers

What Versions of MS does Artifactory Support?

I am looking for some more specific support details. I have managed to persuade our management to use Artifactory. We currently use the following, mostly for WinForms development. We have several dozen products we support. Visual Studio 2015…
user5855178
  • 567
  • 1
  • 7
  • 17
0
votes
2 answers

nuget restore with project.json: should Nuget Package Manager and Nuget.EXE restore the same way?

NPM: Package Manager Console Host Version 3.4.4.1321 nuget.exe: NuGet Version: 3.5.0.1938 Visual Studio: 2015 Enterprise Attempting to restore and build a .nupkg file to bin gets different results, depending on if I use Visual Studio/NPM or Command…
user5855178
  • 567
  • 1
  • 7
  • 17
0
votes
0 answers

Where does project.json file look for packages?

Where does project.json file look for packages on msbuild event? Can we control the search tree?
user5855178
  • 567
  • 1
  • 7
  • 17
0
votes
2 answers

How to debug project.json/nuget build issues?

Visual Studio 2015 Enterprise Nuget.exe 3.4.4.1321 Project: Windows Forms Class Library OK I have project.json file setup in my solution and this builds fine. I have NO IDEA how msbuild finds the packages project.json asks for, but that's fine. I…
user5855178
  • 567
  • 1
  • 7
  • 17
0
votes
1 answer

Nuget Dependency Management - what are my options?

I have started at a new company recently and was tasked to resolve dependency management issues. Tools: Visual Studio Enterprise 2015 Nuget 3.x Team Foundation Server 2012 (won't be upgrading for at least six months) MS SQL Server 2008 Current…
user5855178
  • 567
  • 1
  • 7
  • 17
0
votes
1 answer

Trying to get my .net core application to run in visual studio code

My windows hard drive recently bit the dust recently where I was working on an angular 2 .net core application with vs 2015 using .net core 1.1. I have a computer with ubuntu on it so I though why not just download vs code and clone my project and…
Joshua Deshazer
  • 171
  • 3
  • 15
0
votes
1 answer

.NET Core user secrets, project.json

IHello everyone, I have a small problem, maybe someone can help me, i want to use dotnet user-secrets tool when i'm developing my .net core web app. I am done everything i read here:…
Bonus
  • 43
  • 1
  • 7
0
votes
0 answers

Typescript not working in VS 2017 after converting packages.config to project.json

I'm trying to convert a project to use project.json instead of packages.config for NuGet packages. To do the conversion, I used this converter...…
0
votes
0 answers

.net core project.json test-scoped dependencies

So I basically want to be able to have a test-only dependency that is available during dotnet test. Is there a way to do it? I am aware that project.json is scheduled to be sunsetted, but until that time, I will continue to use it.
Nicholas Terry
  • 1,812
  • 24
  • 40
0
votes
1 answer

How to remove project.json from project

Nuget depends on this singular file, to be in the same directory as the project. This means if there are two projects in one directory, they will conflict. How can I make nuget stop relying on this horrible file?
Jarryd
  • 572
  • 4
  • 13
0
votes
1 answer

Building dotnet core: Please run "dotnet restore" to generate a new lock file

I have multiple projects in my solution. I am trying to create build definitions for my build server. I have Core Project that have no dependencies with the following project.json: { "version": "1.0.0-*", "frameworks": { "netcoreapp1.0":…
Hussein Salman
  • 7,806
  • 15
  • 60
  • 98
0
votes
1 answer

Handle dependency conflict in .NET Core project.json

I have a .NET Core project (targeting .NET 4.6) where I have to use both EF Core and EF 6. Since I'm also using MySQL, my project.json looks something like this: { ... "dependencies": { "EntityFramework": "6.1.3", // For EF 6 …
Joel
  • 8,502
  • 11
  • 66
  • 115