question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot transitively reference a csproj+project.json

See original GitHub issue

Steps to reproduce

  1. Clone https://github.com/gulbanana/repro-transitive-projectjson
  2. dotnet build
  3. error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.

The bug also occurs when building in Visual Studio.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gulbananacommented, Apr 19, 2017

That workaround works (around) for me.

0reactions
livarcocccommented, Apr 19, 2017

Let’s track it though #922.

Read more comments on GitHub >

github_iconTop Results From Across the Web

New .csproj cannot reference a traditional .csproj #1730
I found a workaround: every new .csproj project must directly reference every transitively-referenced project.json project to avoid this bug ...
Read more >
c# - Disable transitive project reference in .NET Standard 2
csproj that references projects for which you don't want their transitive dependencies to be visible by compiler.
Read more >
PackageReference in project files - NuGet
This will enable packages that those projects refer to, to be "transitively" referenced by your project.
Read more >
Managing Dependencies in .NET: .csproj, .packages.config ...
A project was represented by a .csproj file but the dependencies (including NuGet package references) were kept separately in a ...
Read more >
Old csproj to new csproj: Visual Studio 2017 upgrade guide
NET Core went from the project.json to csproj file format, and the new ... Also, MSBuild now does transitive project-to-project references ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found