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
1
vote
1 answer

How to use System.IO.File in Visual Studio's Class Library (Package)

I'm using Visual Studio 2015 and am working with one of the new options, the "Class Library (Package)". I want to create a library that is capable of downloading files from a certain web service and saving them to whatever path is provided. It's…
Josh R
  • 1,970
  • 3
  • 27
  • 45
1
vote
1 answer

Access output directory in prepublish script in ASP.NET5

The project.json file can contain a prepublish entry to execute some scripts before publishing of a package. There are several variables available in those scripts, according to their wiki, for example %project:Directory% "scripts": { …
Mariusz Jamro
  • 30,615
  • 24
  • 120
  • 162
1
vote
2 answers

Does a mvc6 service provides project.json data?

I am using asp.net 5 with mvc6, and I extended the project.json with several stuffs. I am currently reading the project.json by parsing it myself. But I was wondering whether a service or a context exists within mvc6 already providing parsed data of…
1
vote
1 answer

How do I get a package from nuget, even if a project with the same name is available in the solution?

I have a solution with several projects, all of which are DNX class libraries that emit nuget packages. Our build server adds versioning info in appropriate places to project.json and AssemlyInfo, packages all these projects in one go by building…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
1
vote
1 answer

Using project.json in csproj Class Library

Is it possible to use the new project.json file to add NuGet packages to a standard .NET 4.6 Class Library? If so, how?
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
1
vote
1 answer

Wrong Version Mongodb reference

I've a asp.vnext project with dnx 4.6 . in the project.json i added the MongoDb Driver. IT seems like it is working but the visual studio gives me the warning Depedency specified was MongoDB.Driver >= 2.1.0 ended up with MongoDb.Driver…
Boas Enkler
  • 12,264
  • 16
  • 69
  • 143
1
vote
1 answer

what does project.json frameworrks element mean & which framework to use?

When you create a new project in Visual Studio 2015 based on the ASP.NET project template you get the following frameworks element in project.json "frameworks": { "dnx451": { }, "dnxcore50": { } }, If you add a class library to the…
Sul Aga
  • 6,142
  • 5
  • 25
  • 37
1
vote
1 answer

The project being published does not support the framework "dnx-clr-win-x86-beta6"?

NOTE: I have seen this error in other posts, but the problem is that the main solution I've seen, to explicitly define the framework instead of using the default, doesn't work. My project has 1.0.0-beta6 defined as the version in global.json, and…
1
vote
0 answers

Publish Fails when referencing project Asp.Net 5

I building a website with Asp.Net 5 - beta7. This project uses several project dependencies which I have written. Locally I can build and run fine by using the "References -> Add Reference -> Solution Items" to add the project references. …
Justin Blakley
  • 458
  • 4
  • 16
1
vote
1 answer

Dependency does not support framework .NETFramework, Version=v4.6

I am trying to get an MVC 6 web application up and running using the .NET 4.6 CLR, but I get the following kind of errors: The dependency Microsoft.AspNet.Loader.IIS 1.0.0-beta5 in project TestDeployProject does not support framework…
Dave New
  • 38,496
  • 59
  • 215
  • 394
1
vote
1 answer

How best to support multiple versions of .net in the same library

I am creating a .net library in Visual Studio 2015 with the following aims:- Support for .net 2, 3.5, 4 and 4.5+ PCL Support (.net 4.5+) No extra dependencies apart from Json.net Ideally the .net 4.5+ version of the library would make use of…
Geoff Smith
  • 585
  • 1
  • 5
  • 14
0
votes
0 answers

How to convert a .net framework (not core) project from obsolete project.json format

I have an existing set of .net Framework projects (.csproj webapi) that need to be converted to the modern non project.json formats. However I seem to be running into a google black hole and cannot find the definitive instructions on what I need to…
Preet Sangha
  • 64,563
  • 18
  • 145
  • 216
0
votes
1 answer

In Visual Studio 2019, .net Core 2.1, how do I add .net Framework assembly to the project

I am working in Visual Studio 2019, and .net Core 2.1.1. I am currently working on trying to get Identity Server 4's WsFederation integrated. In the latest instructions I could find, he mentions adding System.IdentityModel to the app through the…
Hobbes
  • 79
  • 1
  • 9
0
votes
1 answer

Include CSS Files in Angular Package

I am currently building a tarball npm package via npm: npm run build-release npm pack dist/ Afterwards, I use npm install xxx.tgz to install the package in another Angular application. This works fine to use components defined in the first package,…
Kackao
  • 1,181
  • 3
  • 13
  • 22
0
votes
0 answers

Accessing a JSON file

Please guys what code should I write on my .java file in android studio so I can be able to ACCESS and DISPLAY strings from the .JSON format below. { "question" : [ { "id" : "0", " question " : " ", " options " : { "A" : " ", "B" : "…