Skip to content

Commit ea5eca6

Browse files
committed
Wire up NUKE & native packages again in 3.0
1 parent 5db82a9 commit ea5eca6

File tree

57 files changed

+336
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+336
-142
lines changed

.gitmodules

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
[submodule "src/submodules/Vulkan-Headers"]
22
path = src/submodules/Vulkan-Headers
33
url = https://github.com/KhronosGroup/Vulkan-Headers.git
4+
[submodule "src/submodules/SwiftShader"]
5+
path = src/submodules/SwiftShader
6+
url = https://github.com/google/swiftshader.git
7+
[submodule "src/submodules/ANGLE"]
8+
path = src/submodules/ANGLE
9+
url = https://chromium.googlesource.com/angle/angle.git
10+
[submodule "src/submodules/Vulkan-Loader"]
11+
path = src/submodules/Vulkan-Loader
12+
url = https://github.com/KhronosGroup/Vulkan-Loader.git
13+
[submodule "src/submodules/GLFW"]
14+
path = src/submodules/GLFW
15+
url = https://github.com/glfw/glfw.git
16+
[submodule "src/submodules/Assimp"]
17+
path = src/submodules/Assimp
18+
url = https://github.com/assimp/assimp.git

.nuke/build.schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@
119119
"enum": [
120120
"Angle",
121121
"Assimp",
122-
"BuildLibSilkDroid",
123122
"Clean",
124123
"Compile",
125124
"DeclareApi",
@@ -155,7 +154,6 @@
155154
"enum": [
156155
"Angle",
157156
"Assimp",
158-
"BuildLibSilkDroid",
159157
"Clean",
160158
"Compile",
161159
"DeclareApi",

Silk.NET.sln

Lines changed: 92 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CSharp", "CSharp", "{6842A2
1111
EndProjectSection
1212
EndProject
1313
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{EA3CA547-452A-4D9E-BDB3-3BC5D7F15ACA}"
14-
ProjectSection(SolutionItems) = preProject
15-
src\Directory.Build.props = src\Directory.Build.props
16-
src\Directory.Build.targets = src\Directory.Build.targets
17-
EndProjectSection
14+
ProjectSection(SolutionItems) = preProject
15+
src\Directory.Build.props = src\Directory.Build.props
16+
src\Directory.Build.targets = src\Directory.Build.targets
17+
EndProjectSection
1818
EndProject
1919
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libraries", "libraries", "{C9718C94-2F21-4E8D-B55D-8F0B1A131346}"
2020
EndProject
@@ -25,23 +25,23 @@ EndProject
2525
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "experiments", "experiments", "{1565E50D-3BF1-407E-842A-169F4F86513D}"
2626
EndProject
2727
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "infrastructure", "infrastructure", "{F07CABFC-DC6A-4B5B-BC56-B10EEC2C0BFA}"
28-
ProjectSection(SolutionItems) = preProject
29-
src\infrastructure\.gitignore = src\infrastructure\.gitignore
30-
src\infrastructure\_._ = src\infrastructure\_._
31-
src\infrastructure\Directory.Build.targets = src\infrastructure\Directory.Build.targets
32-
src\infrastructure\README.md = src\infrastructure\README.md
33-
EndProjectSection
28+
ProjectSection(SolutionItems) = preProject
29+
src\infrastructure\.gitignore = src\infrastructure\.gitignore
30+
src\infrastructure\_._ = src\infrastructure\_._
31+
src\infrastructure\Directory.Build.targets = src\infrastructure\Directory.Build.targets
32+
src\infrastructure\README.md = src\infrastructure\README.md
33+
EndProjectSection
3434
EndProject
3535
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "bindings", "bindings", "{9020C7C6-C366-4BD3-8C8A-F81394EC7174}"
36-
ProjectSection(SolutionItems) = preProject
37-
src\bindings\silktouch.json = src\bindings\silktouch.json
38-
src\bindings\Directory.Build.targets = src\bindings\Directory.Build.targets
39-
EndProjectSection
36+
ProjectSection(SolutionItems) = preProject
37+
src\bindings\silktouch.json = src\bindings\silktouch.json
38+
src\bindings\Directory.Build.targets = src\bindings\Directory.Build.targets
39+
EndProjectSection
4040
EndProject
4141
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "generators", "generators", "{8238D9F3-E158-4633-8017-B29AA3AD61F7}"
42-
ProjectSection(SolutionItems) = preProject
43-
src\generators\README.md = src\generators\README.md
44-
EndProjectSection
42+
ProjectSection(SolutionItems) = preProject
43+
src\generators\README.md = src\generators\README.md
44+
EndProjectSection
4545
EndProject
4646
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Assimp.Native", "src\infrastructure\Silk.NET.Assimp.Native\Silk.NET.Assimp.Native.csproj", "{1FBF178D-3F9B-46C5-9D50-21D4D547113E}"
4747
EndProject
@@ -71,6 +71,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Core", "src\librar
7171
EndProject
7272
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Vulkan", "src\bindings\Silk.NET.Vulkan\Silk.NET.Vulkan.csproj", "{AF6E05E0-9C51-4D52-AC7E-056714CAC5F4}"
7373
EndProject
74+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Statiq", "src\infrastructure\Silk.NET.Statiq\Silk.NET.Statiq.csproj", "{ED11DCF5-E925-417A-99E0-B8AD615874EA}"
75+
EndProject
76+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Statiq.TableOfContents", "src\infrastructure\Silk.NET.Statiq.TableOfContents\Silk.NET.Statiq.TableOfContents.csproj", "{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}"
77+
EndProject
78+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.OpenGLES.ANGLE.Native", "src\infrastructure\Silk.NET.OpenGLES.ANGLE.Native\Silk.NET.OpenGLES.ANGLE.Native.csproj", "{62901DA5-46F5-40E6-B680-D55F3AAE0323}"
79+
EndProject
80+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Vulkan.Loader.Native", "src\infrastructure\Silk.NET.Vulkan.Loader.Native\Silk.NET.Vulkan.Loader.Native.csproj", "{95686EFE-3457-42A1-B94C-FE0FF5A1A256}"
81+
EndProject
82+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Vulkan.SwiftShader.Native", "src\infrastructure\Silk.NET.Vulkan.SwiftShader.Native\Silk.NET.Vulkan.SwiftShader.Native.csproj", "{66DC1792-099B-4477-9A98-F4993BD0DDD0}"
83+
EndProject
7484
Global
7585
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7686
Debug|Any CPU = Debug|Any CPU
@@ -261,6 +271,66 @@ Global
261271
{AF6E05E0-9C51-4D52-AC7E-056714CAC5F4}.Release|x64.Build.0 = Release|Any CPU
262272
{AF6E05E0-9C51-4D52-AC7E-056714CAC5F4}.Release|x86.ActiveCfg = Release|Any CPU
263273
{AF6E05E0-9C51-4D52-AC7E-056714CAC5F4}.Release|x86.Build.0 = Release|Any CPU
274+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
275+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
276+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Debug|x64.ActiveCfg = Debug|Any CPU
277+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Debug|x64.Build.0 = Debug|Any CPU
278+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Debug|x86.ActiveCfg = Debug|Any CPU
279+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Debug|x86.Build.0 = Debug|Any CPU
280+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
281+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Release|Any CPU.Build.0 = Release|Any CPU
282+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Release|x64.ActiveCfg = Release|Any CPU
283+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Release|x64.Build.0 = Release|Any CPU
284+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Release|x86.ActiveCfg = Release|Any CPU
285+
{ED11DCF5-E925-417A-99E0-B8AD615874EA}.Release|x86.Build.0 = Release|Any CPU
286+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
287+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
288+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Debug|x64.ActiveCfg = Debug|Any CPU
289+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Debug|x64.Build.0 = Debug|Any CPU
290+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Debug|x86.ActiveCfg = Debug|Any CPU
291+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Debug|x86.Build.0 = Debug|Any CPU
292+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
293+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Release|Any CPU.Build.0 = Release|Any CPU
294+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Release|x64.ActiveCfg = Release|Any CPU
295+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Release|x64.Build.0 = Release|Any CPU
296+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Release|x86.ActiveCfg = Release|Any CPU
297+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C}.Release|x86.Build.0 = Release|Any CPU
298+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
299+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Debug|Any CPU.Build.0 = Debug|Any CPU
300+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Debug|x64.ActiveCfg = Debug|Any CPU
301+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Debug|x64.Build.0 = Debug|Any CPU
302+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Debug|x86.ActiveCfg = Debug|Any CPU
303+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Debug|x86.Build.0 = Debug|Any CPU
304+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Release|Any CPU.ActiveCfg = Release|Any CPU
305+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Release|Any CPU.Build.0 = Release|Any CPU
306+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Release|x64.ActiveCfg = Release|Any CPU
307+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Release|x64.Build.0 = Release|Any CPU
308+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Release|x86.ActiveCfg = Release|Any CPU
309+
{62901DA5-46F5-40E6-B680-D55F3AAE0323}.Release|x86.Build.0 = Release|Any CPU
310+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
311+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Debug|Any CPU.Build.0 = Debug|Any CPU
312+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Debug|x64.ActiveCfg = Debug|Any CPU
313+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Debug|x64.Build.0 = Debug|Any CPU
314+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Debug|x86.ActiveCfg = Debug|Any CPU
315+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Debug|x86.Build.0 = Debug|Any CPU
316+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Release|Any CPU.ActiveCfg = Release|Any CPU
317+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Release|Any CPU.Build.0 = Release|Any CPU
318+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Release|x64.ActiveCfg = Release|Any CPU
319+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Release|x64.Build.0 = Release|Any CPU
320+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Release|x86.ActiveCfg = Release|Any CPU
321+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256}.Release|x86.Build.0 = Release|Any CPU
322+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
323+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Debug|Any CPU.Build.0 = Debug|Any CPU
324+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Debug|x64.ActiveCfg = Debug|Any CPU
325+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Debug|x64.Build.0 = Debug|Any CPU
326+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Debug|x86.ActiveCfg = Debug|Any CPU
327+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Debug|x86.Build.0 = Debug|Any CPU
328+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Release|Any CPU.ActiveCfg = Release|Any CPU
329+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Release|Any CPU.Build.0 = Release|Any CPU
330+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Release|x64.ActiveCfg = Release|Any CPU
331+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Release|x64.Build.0 = Release|Any CPU
332+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Release|x86.ActiveCfg = Release|Any CPU
333+
{66DC1792-099B-4477-9A98-F4993BD0DDD0}.Release|x86.Build.0 = Release|Any CPU
264334
EndGlobalSection
265335
GlobalSection(SolutionProperties) = preSolution
266336
HideSolutionNode = FALSE
@@ -288,6 +358,11 @@ Global
288358
{46A89F89-77B3-4679-A82F-04A552545B16} = {8238D9F3-E158-4633-8017-B29AA3AD61F7}
289359
{69CF4437-59F7-4304-9AE1-4B58E1A93367} = {C9718C94-2F21-4E8D-B55D-8F0B1A131346}
290360
{AF6E05E0-9C51-4D52-AC7E-056714CAC5F4} = {9020C7C6-C366-4BD3-8C8A-F81394EC7174}
361+
{ED11DCF5-E925-417A-99E0-B8AD615874EA} = {F07CABFC-DC6A-4B5B-BC56-B10EEC2C0BFA}
362+
{A11CC2E1-51C3-4DE8-A4B3-F05D37EDAB8C} = {F07CABFC-DC6A-4B5B-BC56-B10EEC2C0BFA}
363+
{62901DA5-46F5-40E6-B680-D55F3AAE0323} = {F07CABFC-DC6A-4B5B-BC56-B10EEC2C0BFA}
364+
{95686EFE-3457-42A1-B94C-FE0FF5A1A256} = {F07CABFC-DC6A-4B5B-BC56-B10EEC2C0BFA}
365+
{66DC1792-099B-4477-9A98-F4993BD0DDD0} = {F07CABFC-DC6A-4B5B-BC56-B10EEC2C0BFA}
291366
EndGlobalSection
292367
GlobalSection(ExtensibilityGlobals) = postSolution
293368
SolutionGuid = {F5273D7F-3334-48DF-94E3-41AE6816CD4D}

eng/chatops/footer.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
---
3+
4+
<sub>This is an automated comment from Silk.NET's NUKE DevOps solution, created from [a GitHub Actions run](https://github.com/dotnet/Silk.NET/actions/runs/{actionsRun}). If this was created by mistake, just let a maintainer know and they'll happily ignore this. Comment type: `{typeId}`</sub>

eng/chatops/public_api_declared.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
![Public API Declared](https://img.shields.io/badge/public%20api-declared-green)
2+
3+
Public API issues have been fixed 🎉
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
![Public API Not Declared](https://img.shields.io/badge/public%20api-not%20declared-red)
2+
3+
Thanks for your contribution adding to the Silk.NET API surface! Note that for manual projects we use the [Public API Analyzer](https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md) wherein the entirety of the public API (for manual projects) are tracked in text files, in hope that this analyzer will warn us about breaking changes before we make them.
4+
5+
It looks like you either:
6+
- haven't added all of your new APIs into this text file. Don't worry, it's a simple fix, you can do this automatically by running `nuke declareapi` and pushing the changed `PublicAPI.Unshipped.txt` files.
7+
- have made a breaking change 😮 If this is intentional, make sure you talk to a maintainer!
8+
9+
This comment will automatically update once you've fixed this issue! For more information see:
10+
- [Public API Analyzers Help](https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)
11+
- [Public API Analyzers Diagnostic Descriptions](https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/Microsoft.CodeAnalysis.PublicApiAnalyzers.md)
12+
- [The GitHub Actions Run That Flagged This](https://github.com/dotnet/Silk.NET/actions/runs/{actionsRun})
13+
14+
(Note to maintainers: this comment won't stop you from merging so if you're fine with this just merge anyway)

eng/code-signing-config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"SignClient": {
3+
"AzureAd": {
4+
"AADInstance": "https://login.microsoftonline.com/",
5+
"ClientId": "c248d68a-ba6f-4aa9-8a68-71fe872063f8",
6+
"TenantId": "16076fdc-fcc1-4a15-b1ca-32c9a255900e"
7+
},
8+
"Service": {
9+
"Url": "https://codesign.dotnetfoundation.org/",
10+
"ResourceId": "https://SignService/3c30251f-36f3-490b-a955-520addb85001"
11+
}
12+
}
13+
}

eng/code-signing-filelist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/Silk.NET*

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
<SilkGeneratorsDir>$(MSBuildThisFileDirectory)generators</SilkGeneratorsDir>
1212
<SilkInfrastructureDir>$(MSBuildThisFileDirectory)infrastructure</SilkInfrastructureDir>
1313
<SilkLibrariesDir>$(MSBuildThisFileDirectory)libraries</SilkLibrariesDir>
14+
<SilkSubmodulesDir>$(MSBuildThisFileDirectory)submodules</SilkSubmodulesDir>
1415
<SilkDocumentationDir>$(MSBuildThisFileDirectory)../documentation</SilkDocumentationDir>
1516
<SilkTestsDir>$(MSBuildThisFileDirectory)../tests</SilkTestsDir>
1617
</PropertyGroup>
1718
<!-- Compiler Options -->
1819
<PropertyGroup>
1920
<Nullable>enable</Nullable>
20-
<SilkDocumentationWarningsAsErrors>CS1591;CS1573</SilkDocumentationWarningsAsErrors>
2121
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2222
</PropertyGroup>
2323
<!-- NuGet -->

src/Directory.Build.targets

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
1-
<Project InitialTargets="PostImportDefinitions">
1+
<Project InitialTargets="SilkAddDateTime">
22
<!-- NuGet Stuff -->
33
<ItemGroup>
4-
<Content Include="$(MSBuildThisFileDirectory)..\documentation\readme\silkdotnet_v3.png"
4+
<Content Include="$(SilkDocumentationDir)\readme\silkdotnet_v3.png"
55
Link="logo.png"
66
Pack="true"
77
PackagePath="\"
88
Visible="false">
99
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
1010
</Content>
1111
</ItemGroup>
12-
<!-- Force Documentation -->
13-
<Target Name="PostImportDefinitions">
14-
<PropertyGroup Condition="'$(SilkDocumentationExempt)' != 'true'">
15-
<WarningsAsErrors>$(SilkDocumentationWarningsAsErrors);$(WarningsAsErrors)</WarningsAsErrors>
12+
<!-- Date/time based versioning (mainly used by natives) -->
13+
<Target Name="SilkAddDateTime">
14+
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
15+
<SilkGitDateTimeFormat>%25%25cI</SilkGitDateTimeFormat>
16+
</PropertyGroup>
17+
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
18+
<SilkGitDateTimeFormat>%25cI</SilkGitDateTimeFormat>
19+
</PropertyGroup>
20+
<Exec ConsoleToMSBuild="True"
21+
Command="git show -s &quot;--format=$(SilkGitDateTimeFormat)&quot;"
22+
WorkingDirectory="$(SilkGitDirForVersion)"
23+
Condition="'$(SilkGitDirForVersion)' != ''">
24+
<Output TaskParameter="ConsoleOutput" PropertyName="_SilkGitIdt" />
25+
</Exec>
26+
<PropertyGroup Condition="'$(SilkGitDirForVersion)' != ''">
27+
<PackageVersion>$([System.DateTime]::Parse($(_SilkGitIdt)).ToUniversalTime().ToString(yyyy.MM.dd))</PackageVersion>
1628
</PropertyGroup>
1729
</Target>
18-
</Project>
30+
</Project>

0 commit comments

Comments
 (0)