Przeglądaj źródła

First commit

master
Christophe Brachet 2 miesięcy temu
rodzic
commit
4bed6fd8d2
25 zmienionych plików z 364 dodań i 0 usunięć
  1. BIN
      MsBuildExample/.vs/MsBuildExample/DesignTimeBuild/.dtbcache.v2
  2. BIN
      MsBuildExample/.vs/MsBuildExample/FileContentIndex/3a2256ad-2675-4c1b-bfc4-8c3bbbfc3769.vsidx
  3. BIN
      MsBuildExample/.vs/MsBuildExample/FileContentIndex/b5e2aa42-c3a9-40f5-b61d-57230d78dbed.vsidx
  4. BIN
      MsBuildExample/.vs/MsBuildExample/FileContentIndex/c711b7fb-27aa-4fd4-a23b-50741821e955.vsidx
  5. BIN
      MsBuildExample/.vs/MsBuildExample/FileContentIndex/d87b0691-498a-468c-91cf-a7cc2fb8fe2e.vsidx
  6. BIN
      MsBuildExample/.vs/MsBuildExample/FileContentIndex/ea485e92-233c-41dc-9187-4f457c21c40a.vsidx
  7. BIN
      MsBuildExample/.vs/MsBuildExample/v17/.futdcache.v2
  8. BIN
      MsBuildExample/.vs/MsBuildExample/v17/.suo
  9. +121
    -0
      MsBuildExample/.vs/MsBuildExample/v17/DocumentLayout.backup.json
  10. +105
    -0
      MsBuildExample/.vs/MsBuildExample/v17/DocumentLayout.json
  11. BIN
      MsBuildExample/.vs/MsBuildExample/v17/TestStore/0/000.testlog
  12. BIN
      MsBuildExample/.vs/MsBuildExample/v17/TestStore/0/testlog.manifest
  13. BIN
      MsBuildExample/.vs/MsBuildExample/v17/TestStore/1/000.testlog
  14. BIN
      MsBuildExample/.vs/MsBuildExample/v17/TestStore/1/testlog.manifest
  15. BIN
      MsBuildExample/.vs/ProjectEvaluation/msbuildexample.metadata.v9.bin
  16. BIN
      MsBuildExample/.vs/ProjectEvaluation/msbuildexample.projects.v9.bin
  17. BIN
      MsBuildExample/.vs/ProjectEvaluation/msbuildexample.strings.v9.bin
  18. +37
    -0
      MsBuildExample/MsBuildExample.sln
  19. +15
    -0
      MsBuildExample/MsBuildExample/MsBuildExample.csproj
  20. +2
    -0
      MsBuildExample/MsBuildExample/Program.cs
  21. +18
    -0
      MsBuildExample/MsBuildExample1/MsBuildExample1.csproj
  22. +2
    -0
      MsBuildExample/MsBuildExample1/Program.cs
  23. +20
    -0
      MsBuildExample/MyCustomBuildTask/MyCustomBuildTask.csproj
  24. +35
    -0
      MsBuildExample/MyCustomBuildTask/SimpleTask3.cs
  25. +9
    -0
      MsBuildExample/MyCustomBuildTask/build/MyCustomBuildTask.props

BIN
MsBuildExample/.vs/MsBuildExample/DesignTimeBuild/.dtbcache.v2 Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/FileContentIndex/3a2256ad-2675-4c1b-bfc4-8c3bbbfc3769.vsidx Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/FileContentIndex/b5e2aa42-c3a9-40f5-b61d-57230d78dbed.vsidx Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/FileContentIndex/c711b7fb-27aa-4fd4-a23b-50741821e955.vsidx Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/FileContentIndex/d87b0691-498a-468c-91cf-a7cc2fb8fe2e.vsidx Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/FileContentIndex/ea485e92-233c-41dc-9187-4f457c21c40a.vsidx Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/v17/.futdcache.v2 Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/v17/.suo Wyświetl plik


+ 121
- 0
MsBuildExample/.vs/MsBuildExample/v17/DocumentLayout.backup.json Wyświetl plik

@@ -0,0 +1,121 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{5CC6B468-F750-40B1-861B-918C28AC36B3}|MsBuildExample1\\MsBuildExample1.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\msbuildexample1\\msbuildexample1.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|",
"RelativeMoniker": "D:0:0:{5CC6B468-F750-40B1-861B-918C28AC36B3}|MsBuildExample1\\MsBuildExample1.csproj|solutionrelative:msbuildexample1\\msbuildexample1.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|"
},
{
"AbsoluteMoniker": "D:0:0:{40405F58-5459-49C1-8204-6E66E09136D4}|MyCustomBuildTask\\MyCustomBuildTask.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\mycustombuildtask\\mycustombuildtask.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|",
"RelativeMoniker": "D:0:0:{40405F58-5459-49C1-8204-6E66E09136D4}|MyCustomBuildTask\\MyCustomBuildTask.csproj|solutionrelative:mycustombuildtask\\mycustombuildtask.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\christophe_brachet\\.nuget\\packages\\mycustombuildtask\\1.0.0\\build\\MyCustomBuildTask.props||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
},
{
"AbsoluteMoniker": "D:0:0:{40405F58-5459-49C1-8204-6E66E09136D4}|MyCustomBuildTask\\MyCustomBuildTask.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\mycustombuildtask\\build\\mycustombuildtask.props||{FA3CD31E-987B-443A-9B81-186104E8DAC1}",
"RelativeMoniker": "D:0:0:{40405F58-5459-49C1-8204-6E66E09136D4}|MyCustomBuildTask\\MyCustomBuildTask.csproj|solutionrelative:mycustombuildtask\\build\\mycustombuildtask.props||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
},
{
"AbsoluteMoniker": "D:0:0:{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}|MsBuildExample\\MsBuildExample.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\msbuildexample\\msbuildexample.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|",
"RelativeMoniker": "D:0:0:{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}|MsBuildExample\\MsBuildExample.csproj|solutionrelative:msbuildexample\\msbuildexample.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|"
},
{
"AbsoluteMoniker": "D:0:0:{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}|MsBuildExample\\MsBuildExample.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\msbuildexample\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}|MsBuildExample\\MsBuildExample.csproj|solutionrelative:msbuildexample\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 2,
"Children": [
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "MyCustomBuildTask.props",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MyCustomBuildTask\\build\\MyCustomBuildTask.props",
"RelativeDocumentMoniker": "MyCustomBuildTask\\build\\MyCustomBuildTask.props",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MyCustomBuildTask\\build\\MyCustomBuildTask.props",
"RelativeToolTip": "MyCustomBuildTask\\build\\MyCustomBuildTask.props",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAQAAABIAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003801|",
"WhenOpened": "2024-09-17T20:58:44.622Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "MyCustomBuildTask.props",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\.nuget\\packages\\mycustombuildtask\\1.0.0\\build\\MyCustomBuildTask.props",
"RelativeDocumentMoniker": "..\\..\\..\\..\\.nuget\\packages\\mycustombuildtask\\1.0.0\\build\\MyCustomBuildTask.props",
"ToolTip": "C:\\Users\\christophe_brachet\\.nuget\\packages\\mycustombuildtask\\1.0.0\\build\\MyCustomBuildTask.props [Lecture seule]",
"RelativeToolTip": "..\\..\\..\\..\\.nuget\\packages\\mycustombuildtask\\1.0.0\\build\\MyCustomBuildTask.props [Lecture seule]",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAQAAABaAAAAAQAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003801|",
"WhenOpened": "2024-09-17T20:43:24.106Z",
"EditorCaption": " [Lecture seule]"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "MsBuildExample1",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample1\\MsBuildExample1.csproj",
"RelativeDocumentMoniker": "MsBuildExample1\\MsBuildExample1.csproj",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample1\\MsBuildExample1.csproj",
"RelativeToolTip": "MsBuildExample1\\MsBuildExample1.csproj",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAAAxAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
"WhenOpened": "2024-09-17T20:41:36.488Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "MyCustomBuildTask.csproj",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MyCustomBuildTask\\MyCustomBuildTask.csproj",
"RelativeDocumentMoniker": "MyCustomBuildTask\\MyCustomBuildTask.csproj",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MyCustomBuildTask\\MyCustomBuildTask.csproj",
"RelativeToolTip": "MyCustomBuildTask\\MyCustomBuildTask.csproj",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAUAAAAOAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
"WhenOpened": "2024-09-17T20:05:07.879Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 5,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample\\Program.cs",
"RelativeDocumentMoniker": "MsBuildExample\\Program.cs",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample\\Program.cs",
"RelativeToolTip": "MsBuildExample\\Program.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-09-17T19:08:53.823Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "MsBuildExample.csproj",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample\\MsBuildExample.csproj",
"RelativeDocumentMoniker": "MsBuildExample\\MsBuildExample.csproj",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample\\MsBuildExample.csproj",
"RelativeToolTip": "MsBuildExample\\MsBuildExample.csproj",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
"WhenOpened": "2024-09-17T19:03:16.845Z",
"EditorCaption": ""
}
]
}
]
}
]
}

+ 105
- 0
MsBuildExample/.vs/MsBuildExample/v17/DocumentLayout.json Wyświetl plik

@@ -0,0 +1,105 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{34AB88B6-7D1A-4965-8021-B369E7B4EA57}|MsBuildExample1\\MsBuildExample1.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\msbuildexample1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{34AB88B6-7D1A-4965-8021-B369E7B4EA57}|MsBuildExample1\\MsBuildExample1.csproj|solutionrelative:msbuildexample1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{40405F58-5459-49C1-8204-6E66E09136D4}|MyCustomBuildTask\\MyCustomBuildTask.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\mycustombuildtask\\build\\mycustombuildtask.props||{FA3CD31E-987B-443A-9B81-186104E8DAC1}",
"RelativeMoniker": "D:0:0:{40405F58-5459-49C1-8204-6E66E09136D4}|MyCustomBuildTask\\MyCustomBuildTask.csproj|solutionrelative:mycustombuildtask\\build\\mycustombuildtask.props||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
},
{
"AbsoluteMoniker": "D:0:0:{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}|MsBuildExample\\MsBuildExample.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\msbuildexample\\msbuildexample.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|",
"RelativeMoniker": "D:0:0:{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}|MsBuildExample\\MsBuildExample.csproj|solutionrelative:msbuildexample\\msbuildexample.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|"
},
{
"AbsoluteMoniker": "D:0:0:{40405F58-5459-49C1-8204-6E66E09136D4}|MyCustomBuildTask\\MyCustomBuildTask.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\mycustombuildtask\\mycustombuildtask.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|",
"RelativeMoniker": "D:0:0:{40405F58-5459-49C1-8204-6E66E09136D4}|MyCustomBuildTask\\MyCustomBuildTask.csproj|solutionrelative:mycustombuildtask\\mycustombuildtask.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|"
},
{
"AbsoluteMoniker": "D:0:0:{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}|MsBuildExample\\MsBuildExample.csproj|c:\\users\\christophe_brachet\\desktop\\projects\\msbuild\\msbuildexample\\msbuildexample\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}|MsBuildExample\\MsBuildExample.csproj|solutionrelative:msbuildexample\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample1\\Program.cs",
"RelativeDocumentMoniker": "MsBuildExample1\\Program.cs",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample1\\Program.cs",
"RelativeToolTip": "MsBuildExample1\\Program.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-09-17T20:26:11.101Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "MyCustomBuildTask.props",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MyCustomBuildTask\\build\\MyCustomBuildTask.props",
"RelativeDocumentMoniker": "MyCustomBuildTask\\build\\MyCustomBuildTask.props",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MyCustomBuildTask\\build\\MyCustomBuildTask.props",
"RelativeToolTip": "MyCustomBuildTask\\build\\MyCustomBuildTask.props",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAAsAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003801|",
"WhenOpened": "2024-09-17T20:18:02.936Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "MyCustomBuildTask.csproj",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MyCustomBuildTask\\MyCustomBuildTask.csproj",
"RelativeDocumentMoniker": "MyCustomBuildTask\\MyCustomBuildTask.csproj",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MyCustomBuildTask\\MyCustomBuildTask.csproj",
"RelativeToolTip": "MyCustomBuildTask\\MyCustomBuildTask.csproj",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
"WhenOpened": "2024-09-17T20:05:07.879Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample\\Program.cs",
"RelativeDocumentMoniker": "MsBuildExample\\Program.cs",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample\\Program.cs",
"RelativeToolTip": "MsBuildExample\\Program.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-09-17T19:08:53.823Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "MsBuildExample.csproj",
"DocumentMoniker": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample\\MsBuildExample.csproj",
"RelativeDocumentMoniker": "MsBuildExample\\MsBuildExample.csproj",
"ToolTip": "C:\\Users\\christophe_brachet\\Desktop\\Projects\\msbuild\\MsBuildExample\\MsBuildExample\\MsBuildExample.csproj",
"RelativeToolTip": "MsBuildExample\\MsBuildExample.csproj",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAgAAAAMAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
"WhenOpened": "2024-09-17T19:03:16.845Z",
"EditorCaption": ""
}
]
}
]
}
]
}

BIN
MsBuildExample/.vs/MsBuildExample/v17/TestStore/0/000.testlog Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/v17/TestStore/0/testlog.manifest Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/v17/TestStore/1/000.testlog Wyświetl plik


BIN
MsBuildExample/.vs/MsBuildExample/v17/TestStore/1/testlog.manifest Wyświetl plik


BIN
MsBuildExample/.vs/ProjectEvaluation/msbuildexample.metadata.v9.bin Wyświetl plik


BIN
MsBuildExample/.vs/ProjectEvaluation/msbuildexample.projects.v9.bin Wyświetl plik


BIN
MsBuildExample/.vs/ProjectEvaluation/msbuildexample.strings.v9.bin Wyświetl plik


+ 37
- 0
MsBuildExample/MsBuildExample.sln Wyświetl plik

@@ -0,0 +1,37 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35208.52
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MsBuildExample", "MsBuildExample\MsBuildExample.csproj", "{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyCustomBuildTask", "MyCustomBuildTask\MyCustomBuildTask.csproj", "{40405F58-5459-49C1-8204-6E66E09136D4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MsBuildExample1", "MsBuildExample1\MsBuildExample1.csproj", "{34AB88B6-7D1A-4965-8021-B369E7B4EA57}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EA42D3A1-110C-4333-81DB-E7F8673B3EE3}.Release|Any CPU.Build.0 = Release|Any CPU
{40405F58-5459-49C1-8204-6E66E09136D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{40405F58-5459-49C1-8204-6E66E09136D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{40405F58-5459-49C1-8204-6E66E09136D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{40405F58-5459-49C1-8204-6E66E09136D4}.Release|Any CPU.Build.0 = Release|Any CPU
{34AB88B6-7D1A-4965-8021-B369E7B4EA57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{34AB88B6-7D1A-4965-8021-B369E7B4EA57}.Debug|Any CPU.Build.0 = Debug|Any CPU
{34AB88B6-7D1A-4965-8021-B369E7B4EA57}.Release|Any CPU.ActiveCfg = Release|Any CPU
{34AB88B6-7D1A-4965-8021-B369E7B4EA57}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {22434515-DF17-41F7-9805-2CC5B7F40F45}
EndGlobalSection
EndGlobal

+ 15
- 0
MsBuildExample/MsBuildExample/MsBuildExample.csproj Wyświetl plik

@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<UsingTask TaskName="MyCustomBuildTask.SimpleTask3" AssemblyFile="..\MyCustomBuildTask\bin\Debug\netstandard2.0\MyCustomBuildTask.dll" />
<Target Name="MyTasks" AfterTargets="AfterBuild">
<Message Importance="High" Text="+++ Justin Dearing +++" />
<SimpleTask3 MyProperty="Christophe Brachet!"/>
</Target>

</Project>

+ 2
- 0
MsBuildExample/MsBuildExample/Program.cs Wyświetl plik

@@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");

+ 18
- 0
MsBuildExample/MsBuildExample1/MsBuildExample1.csproj Wyświetl plik

@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MyCustomBuildTask" Version="1.3.0" />
</ItemGroup>
<Import Project="..\packages\MyCustomBuildTask.1.3.0.0\build\MyCustomBuildTask.props" Condition="Exists('..\packages\MyCustomBuildTask.1.3.0.0\build\MyCustomBuildTask.props')" />
<Target Name="MyTasks" AfterTargets="AfterBuild">
<Message Importance="High" Text="+++ Justin Dearing +++" />
<SimpleTask3 MyProperty="Appel depuis le nuget !" />
</Target>
</Project>

+ 2
- 0
MsBuildExample/MsBuildExample1/Program.cs Wyświetl plik

@@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");

+ 20
- 0
MsBuildExample/MyCustomBuildTask/MyCustomBuildTask.csproj Wyświetl plik

@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsPackable>true</IsPackable>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.3.0.0</Version>
<Title>MyCustomBuildTask</Title>
<Authors>Ecolocale</Authors>
<Description>Description</Description>
<PackageTags>MsBuild Task</PackageTags>
<Copyright>Copyright ©Ecolocale 2024</Copyright>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.0.0" PrivateAssets="all" ExcludeAssets="Runtime" />
<Content Include="build\MyCustomBuildTask.props" PackagePath="build\" />
</ItemGroup>

</Project>

+ 35
- 0
MsBuildExample/MyCustomBuildTask/SimpleTask3.cs Wyświetl plik

@@ -0,0 +1,35 @@
using System;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;

namespace MyCustomBuildTask
{
public class SimpleTask3 : Task
{
private string myProperty;

// The [Required] attribute indicates a required property.
// If a project file invokes this task without passing a value
// to this property, the build will fail immediately.
[Required]
public string MyProperty
{
get
{
return myProperty;
}
set
{
myProperty = value;
}
}

public override bool Execute()
{
// Log a high-importance comment
Log.LogMessage(MessageImportance.High,
"The task was passed \"" + myProperty + "\".");
return true;
}
}
}

+ 9
- 0
MsBuildExample/MyCustomBuildTask/build/MyCustomBuildTask.props Wyświetl plik

@@ -0,0 +1,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--defining properties interesting for my task-->
<PropertyGroup>
<!--Reference to the assembly which contains the MSBuild Task-->
<CustomTasksAssembly>$(MSBuildThisFileDirectory)..\lib\netstandard2.0\$(MSBuildThisFileName).dll</CustomTasksAssembly>
</PropertyGroup>

<UsingTask TaskName="$(MSBuildThisFileName).SimpleTask3" AssemblyFile="$(CustomTasksAssembly)" />
</Project>

Ładowanie…
Anuluj
Zapisz