File tree 4 files changed +37
-25
lines changed 4 files changed +37
-25
lines changed Original file line number Diff line number Diff line change 37
37
<Content Include =" @(_TestAppFile)" CopyToOutputDirectory =" PreserveNewest" Visible =" false" />
38
38
</ItemGroup >
39
39
</Target >
40
+
41
+ <Import Project =" ..\Targets\GenerateNativeDllName.targets" />
40
42
41
43
</Project >
Original file line number Diff line number Diff line change 38
38
<DotNetCliToolReference Include =" dotnet-sourcelink-git" Version =" 2.8.0" />
39
39
</ItemGroup >
40
40
41
- <Import Project =" CodeGenerator.targets" />
41
+ <Import Project =" ..\Targets\CodeGenerator.targets" />
42
+ <Import Project =" ..\Targets\GenerateNativeDllName.targets" />
42
43
43
44
<Target Name =" SetNuSpecProperties" BeforeTargets =" GenerateNuspec" DependsOnTargets =" GetBuildVersion" >
44
45
<PropertyGroup >
Original file line number Diff line number Diff line change 6
6
7
7
<Target Name =" DefineProperties" >
8
8
<PropertyGroup >
9
- <NativeDllNamePath >$(IntermediateOutputPath)NativeDllName.g.cs</NativeDllNamePath >
10
9
<UniqueIdentifierPath >$(IntermediateOutputPath)UniqueIdentifier.g.cs</UniqueIdentifierPath >
11
10
<AssemblyCommitIdsPath >$(IntermediateOutputPath)AssemblyCommitIds.g.cs</AssemblyCommitIdsPath >
12
11
</PropertyGroup >
13
12
</Target >
14
13
15
14
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
-
39
15
<Target Name =" GenerateUniqueIdentifierCs" Inputs =" $(MSBuildThisFileFullPath);$(MSBuildAllProjects);@(Compile)" Outputs =" $(UniqueIdentifierPath)" BeforeTargets =" CoreCompile" DependsOnTargets =" DefineProperties" >
40
16
41
17
<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