-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependencies node fails when ReferenceOutputAssembly="False" on ProjectReference #2653
Comments
@natidea can you take a look at how widespread is this? |
And what is under dotnet-blazor project? It could be either not compatible with ClientServerApp target framework or has some broken dependencies ... |
The repo is public - just clone and take a look |
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>netstandard1.3</TargetFramework>
<RootNamespace>corlib</RootNamespace>
<AssemblyName>corlib</AssemblyName>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<RuntimeMetadataVersion>0</RuntimeMetadataVersion> <!-- Not sure what this affects, but there's a warning if you don't have some value -->
</PropertyGroup>
</Project> |
ClientServerApp.Server has target netcoreapp2.0 and references netstandard1.3 project which seems to be supported https://docs.microsoft.com/en-us/dotnet/standard/net-standard . So warning icon might appear because we use shipped in VS nuget API to check compatibility and need to see what Nuget returns there to start with... |
This also happens for this simple scenario....
|
Note: Even though Dependencies/Projects shows yellow bang, Intellisense is working for the public classes coming in from the project reference |
In the case of @morrisjoe I see a NuGet restore failed and the log file contains package downgrade errors: {
"code": "NU1605",
"level": "Error",
"message": "Detected package downgrade: System.Net.Primitives from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version. \r\n UnitTestProject1 (>= 1.0.0) -> WebApplication1 (>= 1.0.0) -> Microsoft.VisualStudio.Web.BrowserLink (>= 1.1.2) -> Microsoft.AspNetCore.Hosting.Abstractions (>= 1.1.2) -> NETStandard.Library (>= 1.6.1) -> System.Net.Primitives (>= 4.3.0) \r\n UnitTestProject1 (>= 1.0.0) -> WebApplication1 (>= 1.0.0) -> Microsoft.VisualStudio.Web.BrowserLink (>= 1.1.2) -> System.Net.Primitives (>= 4.0.11)",
"libraryId": "System.Net.Primitives",
"targetGraphs": [
".NETCoreApp,Version=v2.0"
]
}, Because of #2436 these diagnostics are not showing up. |
Hi, I get the same issue:-
Please help! John |
@johncollinson2001 what specific errors are you getting in your CI build? If it is failing because of package downgrade errors (NU1605), you could try upgrading to the latest release, or changing the WarnAsError/NoWarn settings in your project. |
@natidea hi, many thanks for your help. On my "dotnet restore" task, I'm getting:
|
@johncollinson2001 some things you can check:
|
Verified this still occurs in d16.0. Reproswith aspnet/Blazor-Hackathon@8258a43. You'll probably need to update the SDK version in
The issue can be isolated between the last two projects. The P2P reference on |
Adding a reference to |
We are not seeing a The lower red box shows The upper red box shows
|
@drewnoakes Those are the resolved paths, we match resolved paths -> evaluation equivalent via the |
@davkean the |
We'd need to fall back to design-time build logs to figure out why its not being resolved. Very likely the project is missing core targets, or targets that are returning the wrong answers. |
Or maybe not the project looks normal, but I'd still look design-time builds logs. |
Minimal repro for this:
This causes the item to appear in evaluation but not in the DTB, which is currently treated as indicating the project is unresolved. |
Duplicate of #2928. |
When I open https://github.com/aspnet/Blazor-Hackathon in VS I get a warning in the solution explorer for the project references for samples/ClientServerApp/ClientServerApp.Server. The dotnet-blazor reference has a warning icon, but there is no warning description in the VS error list.
The text was updated successfully, but these errors were encountered: