-
-
Notifications
You must be signed in to change notification settings - Fork 726
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
Private is missing from ProjectReference #1794
Comments
I am not sure how to recreate this scenario.
How to set this? I couldn't find this copy local variable on project/solution.
Just with above code in cake file I am getting a different error.
|
@coder2213 The The point @scemino is making is that the ProjectReference class is missing a property called Here is an example of a <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Xml">
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestRefProject\TestRefProject.csproj">
<Project>{45a6bfcc-deaa-4b83-b941-cb9db2bf658b}</Project>
<Name>TestRefProject</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
</Project> And here's a Cake script that reproduces what @scemino explained: var parsedProject = ParseProject("./ReproCake1794.csproj");
foreach (var asmRef in parsedProject.References)
{
Information("Assembly ref: Include={0}, Private={1}", asmRef.Include, asmRef.Private);
}
foreach (var projRef in parsedProject.ProjectReferences)
{
Information("Project ref: Name={0}, Private={1}", projRef.Name, projRef.Private);
} This script does not compile because |
Hello, I have this issue fixed on my local uncommited changes. |
@franciscomoloureiro Sure. Just make sure you add the corresponding unit test(s) |
🎉 This issue has been resolved in version v2.0.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
When I parse a project, some properties are missing in the references of the project.
What You Are Seeing?
In the ProjectReference object, I have theses properties:
What is Expected?
I should have also the property Private (also present in ProjectAssemblyReference)
What version of Cake are you using?
Version 0.19.3+Branch.main.Sha.c8a44d4c031e5c9631ec3044536c6af70f3fb04f
Are you running on a 32 or 64 bit system?
64 bit
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
No
How Did You Get This To Happen? (Steps to Reproduce)
Sets Copy local to false or true to a project of your solution.
Then create a build.cake file with:
The text was updated successfully, but these errors were encountered: