-
Notifications
You must be signed in to change notification settings - Fork 440
Installer updates (Merge to SDK Changeset) #17959
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
Changes from all commits
c9ab438
67cbc0d
c42fb4c
b25079d
32c3e4e
b5323ac
93399cf
3f7756f
d35882b
cdf09f8
a6fd8ca
47cb621
7e94dea
049f965
396af3e
a4235dc
d9cc884
ed59078
bec677e
756e6e0
8b09739
7309797
046c159
69787b8
0ac3fc7
23d9262
8e86e03
c0806dd
9424463
7c90785
374d42a
c4501c8
990e256
81824c3
1e82a09
ada9fdf
dfcb891
d29a512
e8ebd70
3849479
f51c01f
34c7829
ab7fc86
5a9e492
35bfedb
f0325a2
d94e51d
3acc889
378b683
712b8fe
7295cdf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| | ||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||
| # Visual Studio Version 16 | ||
| VisualStudioVersion = 16.0.28603.18 | ||
| # Visual Studio Version 17 | ||
| VisualStudioVersion = 17.8.34112.27 | ||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||
| Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{ED2FE3E2-F7E7-4389-8231-B65123F2076F}" | ||
| EndProject | ||
|
|
@@ -15,8 +15,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "core-sdk-tasks", "src\core- | |
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DotNet.Tools.Tests.Utilities", "test\Microsoft.DotNet.Tools.Tests.Utilities\Microsoft.DotNet.Tools.Tests.Utilities.csproj", "{78E15EC1-7732-41E3-8591-934E9F583254}" | ||
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SdkResolver", "src\SdkResolver\SdkResolver.csproj", "{7EE15292-2CAD-44FA-8A1F-BAC4688A49E0}" | ||
| EndProject | ||
|
Comment on lines
-18
to
-19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, this is more of an "asset" to |
||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Dotnet.Sdk.Internal", "src\Microsoft.Dotnet.Sdk.Internal\Microsoft.Dotnet.Sdk.Internal.csproj", "{73F07908-981B-41BB-B9BD-F3420274A6F7}" | ||
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SdkTests", "test\SdkTests\SdkTests.csproj", "{CB1EE94E-CB83-4071-9DD0-9929AE2B7282}" | ||
|
|
@@ -45,10 +43,6 @@ Global | |
| {78E15EC1-7732-41E3-8591-934E9F583254}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {78E15EC1-7732-41E3-8591-934E9F583254}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {78E15EC1-7732-41E3-8591-934E9F583254}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| {7EE15292-2CAD-44FA-8A1F-BAC4688A49E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {7EE15292-2CAD-44FA-8A1F-BAC4688A49E0}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {7EE15292-2CAD-44FA-8A1F-BAC4688A49E0}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {7EE15292-2CAD-44FA-8A1F-BAC4688A49E0}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| {73F07908-981B-41BB-B9BD-F3420274A6F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {73F07908-981B-41BB-B9BD-F3420274A6F7}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {73F07908-981B-41BB-B9BD-F3420274A6F7}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
|
|
@@ -70,7 +64,6 @@ Global | |
| {1BFF54F9-4E35-49DB-893C-AF2047722FC6} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7} | ||
| {53AF2D01-B69F-4CD0-86A7-8FD95967D23C} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F} | ||
| {78E15EC1-7732-41E3-8591-934E9F583254} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7} | ||
| {7EE15292-2CAD-44FA-8A1F-BAC4688A49E0} = {ED2FE3E2-F7E7-4389-8231-B65123F2076F} | ||
| {CB1EE94E-CB83-4071-9DD0-9929AE2B7282} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7} | ||
| {658EF9BE-452C-4D31-AA24-B9E2235799A8} = {17735A9D-BFD9-4585-A7CB-3208CA6EA8A7} | ||
| EndGlobalSection | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,23 @@ | ||
| <Project> | ||
| <Project> | ||
|
|
||
| <PropertyGroup> | ||
| <_SuppressSdkImports>false</_SuppressSdkImports> | ||
| </PropertyGroup> | ||
|
|
||
| <Target Name="PopulateGenerateChecksumItems" | ||
| AfterTargets="Build" | ||
| BeforeTargets="GenerateChecksums" > | ||
|
|
||
| <Target Name="PopulateGenerateChecksumItems" AfterTargets="Build" BeforeTargets="GenerateChecksums"> | ||
| <ItemGroup> | ||
| <InstallerFiles Include="$(ArtifactsShippingPackagesDir)**\*.msi" /> | ||
| <InstallerFiles Include="$(ArtifactsShippingPackagesDir)**\*.exe" /> | ||
| <InstallerFiles Include="$(ArtifactsShippingPackagesDir)**\*.zip" Exclude="$(ArtifactsShippingPackagesDir)**\*.wixpack.zip" /> | ||
| <InstallerFiles Include="$(ArtifactsShippingPackagesDir)**\*.tar.gz" /> | ||
| <InstallerFiles Include="$(ArtifactsShippingPackagesDir)**\*.deb" /> | ||
| <InstallerFiles Include="$(ArtifactsShippingPackagesDir)**\*.rpm" /> | ||
| <GenerateChecksumItems Include="%(InstallerFiles.Identity)" > | ||
| <GenerateChecksumItems Include="%(InstallerFiles.Identity)"> | ||
| <DestinationPath>%(FullPath).sha512</DestinationPath> | ||
| </GenerateChecksumItems> | ||
| </ItemGroup> | ||
| </Target> | ||
|
|
||
| <Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" /> | ||
|
|
||
| </Project> |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,9 +24,6 @@ if ($PgoInstrument) { | |
|
|
||
| if ($Sign) { | ||
| $Parameters = "$Parameters -sign /p:SignCoreSdk=true" | ||
|
|
||
| # Workaround https://github.com/dotnet/arcade/issues/1776 | ||
| $WarnAsError = $false | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wasn't exactly sure what was going on here as this is linked to a closed issue from 2019. I haven't seen any detrimental effects from removing this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems specific to arcade issue linked. Did you try running a fully signed build against the internal pipeline. Seems like this is the only time you'd hit the problem this was trying to solve |
||
| } | ||
|
|
||
| $Parameters = "$Parameters -WarnAsError `$$WarnAsError" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,16 +26,9 @@ public override bool Execute() | |
| { | ||
| var resultItem = new TaskItem(item); | ||
| item.CopyMetadataTo(resultItem); | ||
|
|
||
| if (File.Exists(resultItem.GetMetadata("FullPath")) && | ||
| HasMetadata(resultItem.GetMetadata("FullPath"))) | ||
| { | ||
| resultItem.SetMetadata("IsPE", "True"); | ||
| } | ||
| else | ||
| { | ||
| resultItem.SetMetadata("IsPE", "False"); | ||
| } | ||
|
|
||
| var isPe = File.Exists(resultItem.GetMetadata("FullPath")) && HasMetadata(resultItem.GetMetadata("FullPath")); | ||
| resultItem.SetMetadata("IsPE", isPe.ToString()); | ||
|
Comment on lines
-29
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Warning This is just a rant. It doesn't directly relate to this PR but uses this simple change as an example. Perfect example of why I don't like if-else statements. Both bodies (true body and false body) are identical statements. The only difference is the data being passed to the method. The data itself is a literal value of the predicate result. Thus, I just make a single statement to the method and inject the predicate result directly. The conversion of a boolean to string is built into the boolean type. No need to reinvent the wheel. I see this same pattern happen on a larger scale and the only way to recognize that it happens is to refactor and simplify. This also removes branching logic since it takes the branches and collapses them into data, not statements. As far as I'm concerned, the language doesn't allow a more straightforward way to write this. |
||
|
|
||
| resultItemsList.Add(resultItem); | ||
| } | ||
|
|
||
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.
This matches the SDK repo settings.