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
If both of the Bond.CSharp and Bond.Compiler.CSharp packages are referenced in the same SDK-style csproj file, an error about "Duplicate BondCodegen items were included" will be emitted.
The codegen targets should detect this and emit an error. Bonus points if they handle this automatically instead.
Conditional MSBuild imports have, historically, confused Visual Studio, so an approach like <Import Project="Common.props" Condition=" '$(_bond_common_props_imported)' != 'true' " /> is probably not viable.
The text was updated successfully, but these errors were encountered:
If both of the Bond.CSharp and Bond.Compiler.CSharp packages are referenced in the same SDK-style csproj file, an error about "Duplicate BondCodegen items were included" will be emitted.
This is caused by each package including Common.props and Common.targets, so the
<BondCodegen Include="**/*.bond" />
item in Common.props is evaluated twice, which results in the duplicate items inBondCodegen
.Work-around: only reference Bond.CSharp xor Bond.Compiler.CSharp.
The codegen targets should detect this and emit an error. Bonus points if they handle this automatically instead.
Conditional MSBuild imports have, historically, confused Visual Studio, so an approach like
<Import Project="Common.props" Condition=" '$(_bond_common_props_imported)' != 'true' " />
is probably not viable.The text was updated successfully, but these errors were encountered: