Skip to content

Commit 8c489c3

Browse files
committed
typo
1 parent 4af8a82 commit 8c489c3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/build-msbuild.ps1

+6-7
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ if (Test-Path $7z) {
7777
if (-not ($zipContents|Select-String "Path = "|Select-String "CodegenCS.Core.pdb")) { throw "msbuild failed" }
7878
}
7979

80+
# Visual Studio Design-Time-Builds were keeping msbuild running and eventually building (and locking) our templates. I think this is gone, now that Design-Time-Builds were blocked in CodegenCS.MSBuild.targets
8081
# handle codegencs.core.dll
81-
taskkill /f /im msbuild.exe
82+
#taskkill /f /im msbuild.exe
8283

8384

8485
# If task fails due to missing dependencies then fusion++ might help to identify what's missing: C:\ProgramData\chocolatey\lib\fusionplusplus\tools\Fusion++.exe
@@ -96,11 +97,10 @@ if (! $?) { throw "msbuild failed" }
9697

9798
Write-Host "------------" -ForegroundColor Yellow
9899

99-
if (-not (gci ..\Samples\MSBuild1\*.g.cs)){ throw "Template failed (classed were not added to the compilation)" }
100-
if (-not (gci ..\Samples\MSBuild1\*.generated.cs)){ throw "Template failed (classed were not added to the compilation)" }
100+
if (-not (gci ..\Samples\MSBuild1\*.g.cs)){ throw "Template failed (classes were not added to the compilation)" }
101101

102102
C:\ProgramData\chocolatey\lib\dnspyex\tools\dnSpy.Console.exe ..\Samples\MSBuild1\bin\$configuration\net8.0\MSBuild1.dll -t MyFirstClass
103-
if (! $?) { throw "Template failed (classed were not added to the compilation)" }
103+
if (! $?) { throw "Template failed (classes were not added to the compilation)" }
104104
#C:\ProgramData\chocolatey\lib\dnspyex\tools\dnSpy.exe ..\Samples\MSBuild1\bin\$configuration\net8.0\MSBuild1.dll
105105

106106
# Test with non-SDK-Project (Microsoft Framework Web Application)
@@ -117,11 +117,10 @@ if (! $?) { throw "msbuild failed" }
117117

118118
Write-Host "------------" -ForegroundColor Yellow
119119

120-
if (-not (gci ..\Samples\MSBuild2\*.g.cs)){ throw "Template failed (classed were not added to the compilation)" }
121-
if (-not (gci ..\Samples\MSBuild2\*.generated.cs)){ throw "Template failed (classed were not added to the compilation)" }
120+
if (-not (gci ..\Samples\MSBuild2\*.g.cs)){ throw "Template failed (classes were not added to the compilation)" }
122121

123122
C:\ProgramData\chocolatey\lib\dnspyex\tools\dnSpy.Console.exe ..\Samples\MSBuild2\bin\WebApplication.dll -t MyFirstClass
124-
if (! $?) { throw "Template failed (classed were not added to the compilation)" }
123+
if (! $?) { throw "Template failed (classes were not added to the compilation)" }
125124
#C:\ProgramData\chocolatey\lib\dnspyex\tools\dnSpy.exe ..\Samples\MSBuild2\bin\WebApplication.dll
126125

127126

src/build-sourcegenerator.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if (! $?) { throw "msbuild failed" }
9696
Write-Host "------------" -ForegroundColor Yellow
9797
C:\ProgramData\chocolatey\lib\dnspyex\tools\dnSpy.Console.exe ..\Samples\SourceGenerator1\bin\$configuration\netstandard2.0\SourceGenerator1.dll -t MyFirstClass
9898
C:\ProgramData\chocolatey\lib\dnspyex\tools\dnSpy.Console.exe ..\Samples\SourceGenerator1\bin\$configuration\netstandard2.0\SourceGenerator1.dll -t AnotherSampleClass # should show some methods that were generated on the fly
99-
if (! $?) { throw "Template failed (classed were not added to the compilation)" }
99+
if (! $?) { throw "Template failed (classes were not added to the compilation)" }
100100

101101
Pop-Location
102102

0 commit comments

Comments
 (0)