File tree Expand file tree Collapse file tree 4 files changed +37
-25
lines changed
Expand file tree Collapse file tree 4 files changed +37
-25
lines changed Original file line number Diff line number Diff line change 3737 <Content Include =" @(_TestAppFile)" CopyToOutputDirectory =" PreserveNewest" Visible =" false" />
3838 </ItemGroup >
3939 </Target >
40+
41+ <Import Project =" ..\Targets\GenerateNativeDllName.targets" />
4042
4143</Project >
Original file line number Diff line number Diff line change 3838 <DotNetCliToolReference Include =" dotnet-sourcelink-git" Version =" 2.8.0" />
3939 </ItemGroup >
4040
41- <Import Project =" CodeGenerator.targets" />
41+ <Import Project =" ..\Targets\CodeGenerator.targets" />
42+ <Import Project =" ..\Targets\GenerateNativeDllName.targets" />
4243
4344 <Target Name =" SetNuSpecProperties" BeforeTargets =" GenerateNuspec" DependsOnTargets =" GetBuildVersion" >
4445 <PropertyGroup >
Original file line number Diff line number Diff line change 66
77 <Target Name =" DefineProperties" >
88 <PropertyGroup >
9- <NativeDllNamePath >$(IntermediateOutputPath)NativeDllName.g.cs</NativeDllNamePath >
109 <UniqueIdentifierPath >$(IntermediateOutputPath)UniqueIdentifier.g.cs</UniqueIdentifierPath >
1110 <AssemblyCommitIdsPath >$(IntermediateOutputPath)AssemblyCommitIds.g.cs</AssemblyCommitIdsPath >
1211 </PropertyGroup >
1312 </Target >
1413
1514
16- <Target Name =" GenerateNativeDllNameCs" Inputs =" $(libgit2_propsfile)" Outputs =" $(NativeDllNamePath)" BeforeTargets =" CoreCompile" DependsOnTargets =" DefineProperties" >
17- <PropertyGroup >
18- <NativeDllNameSourceLines >
19- namespace LibGit2Sharp.Core
20- {
21- internal static class NativeDllName
22- {
23- public const string Name = "$(libgit2_filename)"%3b
24- }
25- }
26- </NativeDllNameSourceLines >
27- </PropertyGroup >
28-
29- <WriteLinesToFile File =" $(NativeDllNamePath)" Lines =" $(NativeDllNameSourceLines)" Overwrite =" true" />
30-
31- <ItemGroup >
32- <Compile Include =" $(NativeDllNamePath)" />
33- <FileWrites Include =" $(NativeDllNamePath)" />
34- </ItemGroup >
35-
36- </Target >
37-
38-
3915 <Target Name =" GenerateUniqueIdentifierCs" Inputs =" $(MSBuildThisFileFullPath);$(MSBuildAllProjects);@(Compile)" Outputs =" $(UniqueIdentifierPath)" BeforeTargets =" CoreCompile" DependsOnTargets =" DefineProperties" >
4016
4117 <PropertyGroup >
Original file line number Diff line number Diff line change 1+ <Project >
2+
3+ <PropertyGroup >
4+ <MSBuildAllProjects >$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects >
5+ </PropertyGroup >
6+
7+ <Target Name =" DefineNativeDllName" >
8+ <PropertyGroup >
9+ <NativeDllNamePath >$(IntermediateOutputPath)NativeDllName.g.cs</NativeDllNamePath >
10+ </PropertyGroup >
11+ </Target >
12+
13+ <Target Name =" GenerateNativeDllNameCs" Inputs =" $(libgit2_propsfile)" Outputs =" $(NativeDllNamePath)" BeforeTargets =" CoreCompile" DependsOnTargets =" DefineNativeDllName" >
14+ <PropertyGroup >
15+ <NativeDllNameSourceLines >
16+ namespace LibGit2Sharp.Core
17+ {
18+ internal static class NativeDllName
19+ {
20+ public const string Name = "$(libgit2_filename)"%3b
21+ }
22+ }
23+ </NativeDllNameSourceLines >
24+ </PropertyGroup >
25+
26+ <WriteLinesToFile File =" $(NativeDllNamePath)" Lines =" $(NativeDllNameSourceLines)" Overwrite =" true" />
27+
28+ <ItemGroup >
29+ <Compile Include =" $(NativeDllNamePath)" />
30+ <FileWrites Include =" $(NativeDllNamePath)" />
31+ </ItemGroup >
32+ </Target >
33+ </Project >
You can’t perform that action at this time.
0 commit comments