File tree Expand file tree Collapse file tree
src/Ubiquity.NET.CommandLine.SrcGen.UT Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 Project reference with `ReferenceOutputAssembly="false"` ensures build dependency but doesn't reference the output.
2626 A `None` item is still needed to get a copy of the library in the output folder though...
2727 -->
28- <ProjectReference Include =" ..\Ubiquity.NET.CommandLine\Ubiquity.NET.CommandLine.csproj" ReferenceOutputAssembly =" false" >
29- <Private >True</Private >
30- </ProjectReference >
31- </ItemGroup >
32-
33- <ItemGroup >
34- <!-- This ensures the assembly is present even if not directly used by this test (It is referenced by the test compilations) -->
35- <None Include =" $(BaseBuildOutputBinPath)Ubiquity.NET.CommandLine\$(Configuration)\$(TargetFramework)\Ubiquity.NET.CommandLine.*" Pack =" false" Visible =" false" >
36- <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
37- </None >
28+ <ProjectReference Include =" ..\Ubiquity.NET.CommandLine\Ubiquity.NET.CommandLine.csproj" ReferenceOutputAssembly =" false" />
3829 </ItemGroup >
3930
4031 <ItemGroup >
4637 <EmbeddedResource Include =" TestFiles\RootCommandAttributeTests\expected.cs" />
4738 <EmbeddedResource Include =" TestFiles\RootCommandAttributeTests\input.cs" />
4839 </ItemGroup >
40+
41+ <Target Name =" ForceCopyTestDependency" BeforeTargets =" AfterBuild" >
42+ <!-- This ensures the assembly is present even if not directly used by this test (It is referenced by the test compilations) -->
43+ <Copy
44+ SourceFiles =" $(BaseBuildOutputBinPath)Ubiquity.NET.CommandLine\$(Configuration)\$(TargetFramework)\Ubiquity.NET.CommandLine.dll"
45+ DestinationFolder =" $(BaseBuildOutputBinPath)$(AssemblyName)\$(Configuration)\$(TargetFramework)\"
46+ />
47+ </Target >
4948</Project >
You can’t perform that action at this time.
0 commit comments