We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MSBuild properties are not supported for nx.
nx
Example: If in .csproj i use relative path:
.csproj
(...) <ProjectReference Include="..\..\..\..\libs\x\x.csproj" />
Build with "--no-dependencies" works and nx graph show everything as expected.
nx graph
But when i use MSBuild properties like this: Directory.Build.props:
Directory.Build.props
<RepoRoot>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))</RepoRoot>
.csproj:
(...) <ProjectReference Include="$(RepoRoot)\libs\x\x.csproj" />
nx graph show no connection with my x library and build with "--no-dependencies" throw CSC : error CS0006: Metadata file
x
CSC : error CS0006: Metadata file
nx graph and build with --no-dependencies should work with below configuration:
--no-dependencies
Directory.Build.props:
No response
.
The text was updated successfully, but these errors were encountered:
Hi, have you followed this guide?
https://nx.dev/showcase/example-repos/add-dotnet
I had to add the following config to Directory.build.props <DefaultItemExcludes>$(DefaultItemExcludes);obj/**</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);obj/**</DefaultItemExcludes>
to get it to work properly
Sorry, something went wrong.
No branches or pull requests
Current Behavior
MSBuild properties are not supported for
nx
.Example:
If in
.csproj
i use relative path:Build with "--no-dependencies" works and
nx graph
show everything as expected.But when i use MSBuild properties like this:
Directory.Build.props
:.csproj
:nx graph
show no connection with myx
library and build with "--no-dependencies" throwCSC : error CS0006: Metadata file
Expected Behavior
nx graph
and build with--no-dependencies
should work with below configuration:Directory.Build.props
:.csproj
:Github Repo
No response
Steps to Reproduce
Nx Report
.
nx.json
.
Failure Logs
CSC : error CS0006: Metadata file
Additional Information
No response
The text was updated successfully, but these errors were encountered: