You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building our solution involves first building a tool which is used later in the build process.
In order to ensure the tooling is built first, I attempted to configure Project Dependencies in VS to create a dependency between a netstandard2.0 library and a net461 app (tool).
This works in VS and everything builds correctly, but it fails when building the solution using dotnet build with the error: C:\Program Files\dotnet\sdk\2.0.0\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.Common.targets(87,5): error : Project 'C:\tmp\BuildOrderRepro\NetCoreApp\NetCoreApp.csproj' targets '.NETCoreApp,Version=v2.0'. It cannot be referenced by a project that targets '.NETStandard,Version=v2.0'. [C:\tmp\BuildOrderRepro\NetCoreApp\NetCoreApp.csproj]
Building our solution involves first building a tool which is used later in the build process.
In order to ensure the tooling is built first, I attempted to configure
Project Dependencies
in VS to create a dependency between anetstandard2.0
library and anet461
app (tool).This works in VS and everything builds correctly, but it fails when building the solution using
dotnet build
with the error:C:\Program Files\dotnet\sdk\2.0.0\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.Common.targets(87,5): error : Project 'C:\tmp\BuildOrderRepro\NetCoreApp\NetCoreApp.csproj' targets '.NETCoreApp,Version=v2.0'. It cannot be referenced by a project that targets '.NETStandard,Version=v2.0'. [C:\tmp\BuildOrderRepro\NetCoreApp\NetCoreApp.csproj]
Repro project:
BuildOrderRepro.zip
The text was updated successfully, but these errors were encountered: