Add workflow to update solution files with SlnGen and update them initially#44703
Add workflow to update solution files with SlnGen and update them initially#44703ViktorHofer merged 2 commits intodotnet:masterfrom
Conversation
|
Tagging subscribers to this area: @safern, @ViktorHofer DetailsIssue Details
|
|
Is it intentional that the .sln files are added as binary files? |
c0dc4f5 to
40f90e7
Compare
It's not. Investigating... |
40f90e7 to
04a2086
Compare
|
Hmm no idea: |
|
OK reason is, the file encoding is UTF-16LE which GH detects as binary. PR in slngen: microsoft/slngen#189 |
04a2086 to
9f0527c
Compare
|
Fixed, removing the no-merge label. |
c97884c to
0af8100
Compare
|
/azp run runtime |
|
/azp run runtime-live-build |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 1 pipeline(s). |
| $ProjContent | Out-File -FilePath $ProjFilePath | ||
| dotnet slngen "$ProjFilePath -p SlnGenMainProject=$($file.BaseName) --launch false --nologo" | ||
| Remove-Item $ProjFilePath | ||
| } |
There was a problem hiding this comment.
could you rewrite this in msbuild so we can run it on macOS/Linux too?
There was a problem hiding this comment.
Powershell runs on macOS & Linux. We have couple other ps1 scripts which we only trigger on demand like this one.
There was a problem hiding this comment.
Ah right, I keep forgetting about cross-platform powershell :D
Fixes #43109
Fixes #42121
SlnGen is used to update the solution files. Adding:
Updating all the solution files checked in. The size increases are expected as a) SlnGen adds dedicated nodes for the solution folders and b) missing dependencies are now part of the solution file.