-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workflow to update solution files with SlnGen and update them initially #44703
Conversation
Tagging subscribers to this area: @safern, @ViktorHofer Issue 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you rewrite this in msbuild so we can run it on macOS/Linux too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.