Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
c9ab438
Remove no longer applicable workaround in run-build.ps1. Applied expr…
MiYanni Nov 11, 2023
67cbc0d
Applied expression bodies for methods to solution.
MiYanni Nov 11, 2023
c42fb4c
Cleanup extra qualification. Cleanup redundant casting. Cleanup using…
MiYanni Nov 11, 2023
b25079d
Lots of minor cleanup and simplification.
MiYanni Nov 11, 2023
32c3e4e
Minor simplification and cleanup. The record I created didn't work fo…
MiYanni Nov 13, 2023
b5323ac
Minor formatting cleanup.
MiYanni Nov 13, 2023
93399cf
Minor formatting cleanup.
MiYanni Nov 17, 2023
3f7756f
Added some comments to Version.Details.xml for packages that may not …
MiYanni Dec 7, 2023
d35882b
Moved packaging up a directory into redist from targets.
MiYanni Dec 8, 2023
cdf09f8
Moved contents of both clisdk folders from osx/windows up a directory.
MiYanni Dec 8, 2023
a6fd8ca
Update pathing for the moving of packaging and clisdk folders/files.
MiYanni Dec 9, 2023
47cb621
Added Valleysoft.DockerCredsProvider.dll to be ignored for signing.
MiYanni Dec 11, 2023
7e94dea
Simplify the DownloadPackage.csproj by using the NoTargets SDK.
MiYanni Dec 12, 2023
049f965
Removed LayoutTool.csproj. Reused DownloadPackage.csproj and merged t…
MiYanni Dec 13, 2023
396af3e
Move SdkResolver.csproj and VSTemplateLocator.csproj into projects un…
MiYanni Dec 13, 2023
a4235dc
Move DownloadPackage.csproj to the projects directory for redist. Cle…
MiYanni Dec 13, 2023
d9cc884
Update file comment about usage in DownloadPackage.csproj.
MiYanni Dec 13, 2023
ed59078
Use Microsoft.Build.NoTargets for the SdkResolver.csproj and VSTempla…
MiYanni Dec 14, 2023
bec677e
Instead of making it complicated, I simply made these 2 packaging pro…
MiYanni Dec 14, 2023
756e6e0
Minor formatting fixes. TODO comments for tracking versions/packages.
MiYanni Jan 8, 2024
8b09739
Version alignment with the SDK branch.
MiYanni Jan 9, 2024
7309797
No longer needed these TODOs as FSharp version is aligned.
MiYanni Jan 11, 2024
046c159
Minor formatting cleanup.
MiYanni Jan 23, 2024
69787b8
Merge branch 'feature/installer-merge-update-main' into feature/insta…
MiYanni Jan 29, 2024
0ac3fc7
Version alignment with SDK repo branch.
MiYanni Jan 29, 2024
23d9262
General formatting and cleanup. Removed GivenThatWeWantToRunCrossgen …
MiYanni Feb 6, 2024
8e86e03
Fix missing single quote in SdkTests.csproj.
MiYanni Feb 6, 2024
c0806dd
Fix bugged BundledDotnetTools.targets execution (wasn't processing th…
MiYanni Feb 7, 2024
9424463
Fix CalculateTemplateVerionsTests to access the properties of the ret…
MiYanni Feb 7, 2024
7c90785
Moved the csproj into the finalizer folder.
MiYanni Feb 7, 2024
374d42a
Renamed finalizer_shim to finalizer-build.
MiYanni Feb 7, 2024
c4501c8
Renamed finalizer.proj to finalizer.nativeproj.
MiYanni Feb 7, 2024
990e256
Updated finalizer to have the same changes that were done in the SDK …
MiYanni Feb 7, 2024
81824c3
Fix the finalizer path after the finalizer changes.
MiYanni Feb 8, 2024
1e82a09
Attempting to use simple relative pathing for CMake include directories.
MiYanni Feb 8, 2024
ada9fdf
I realized I might have malformed the path with backslash and forward…
MiYanni Feb 8, 2024
dfcb891
Backslashes are escape characters. Trying forward slashes explicitly.
MiYanni Feb 8, 2024
d29a512
Cleaned up the ArtifactsDir fix and added comments for context.
MiYanni Feb 8, 2024
e8ebd70
Bumping Node version to avoid build warning: "##[warning]The agent op…
MiYanni Feb 14, 2024
3849479
Minor whitespace cleanup.
MiYanni Feb 14, 2024
f51c01f
Whitespace cleanup.
MiYanni Feb 16, 2024
34c7829
Merge branch 'feature/installer-merge-update-main' into feature/insta…
MiYanni Feb 27, 2024
ab7fc86
Remove Valleysoft.DockerCredsProvider.dll being ignored.
MiYanni Feb 28, 2024
5a9e492
Added Valleysoft.DockerCredsProvider.dll exclusion back as it is nece…
MiYanni Feb 28, 2024
35bfedb
Adjusted the way in which Platform is set for finalizer. Now, it is s…
MiYanni Mar 1, 2024
f0325a2
Make sure Platform is TreatAsLocalProperty so it can be set properly.
MiYanni Mar 4, 2024
d94e51d
Addressing PR feedback. Trying the signing for Valleysoft.DockerCreds…
MiYanni Apr 2, 2024
3acc889
Merge branch 'feature/installer-merge-update-main' into feature/insta…
MiYanni Apr 5, 2024
378b683
Merge branch 'main' into feature/installer-merge
MiYanni Apr 5, 2024
712b8fe
Temporarily comment astextplain diff in .gitattributes
akoeplinger Apr 6, 2024
7295cdf
Use binary instead of astextplain
akoeplinger Apr 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dotnet_style_qualification_for_event = false:suggestion
# only use var when it's obvious what the variable type is
csharp_style_var_for_built_in_types = false:none
csharp_style_var_when_type_is_apparent = false:none
csharp_style_var_elsewhere = false:suggestion
csharp_style_var_elsewhere = false:none
Copy link
Member Author

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.


# use language keywords instead of BCL types
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
Expand Down
22 changes: 11 additions & 11 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.doc binary
*.DOC binary
*.docx binary
*.DOCX binary
*.dot binary
*.DOT binary
*.pdf binary
*.PDF binary
*.rtf binary
*.RTF binary

*.jpg binary
*.png binary
Expand Down Expand Up @@ -52,4 +52,4 @@
*.fsproj text=auto
*.dbproj text=auto
*.xlf text=auto
*.sln text=auto eol=crlf
*.sln text=auto eol=crlf
26 changes: 19 additions & 7 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />

<PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''">
<Copyright>$(CopyrightNetFoundation)</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<!-- Platform needs to be set with TreatAsLocalProperty since it is a global property and cannot be overridden otherwise. -->
<Project TreatAsLocalProperty="Platform">

<PropertyGroup>
<BuildArchitecture Condition="'$(BuildArchitecture)' == ''">$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>
Expand All @@ -14,7 +9,24 @@
<Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 'ppc64le'">$(BuildArchitecture)</Architecture>
<Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 'loongarch64'">$(BuildArchitecture)</Architecture>
<Architecture Condition="'$(Architecture)' == ''">x64</Architecture>

<!--
The finalizer project needs to have Platform set to build for the correct architecture.
Platform needs to be set prior to calling the Arcade SDK, which sets PlatformName in RepoDefaults.props and modifies the OutputPath in ProjectLayout.props to include a PlatformName folder in the path.
Currently, build.cmd calls run-build.ps1, which always sets the Architecture.
However, if you wanted to build the finalizer project directly, the Architecture will use the logic above to be set properly, and thus maintain the correct OutputPath.
Note: The redist project does use Architecture. The Arcade SDK does not use either BuildArchitecture or Architecture.
-->
<Platform Condition="'$(SetPlatformFromArchitecture)' == 'true' And ('$(Platform)' == '' Or '$(Platform)' == 'AnyCPU')">$(Architecture)</Platform>
</PropertyGroup>

<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />

<PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''">
<Copyright>$(CopyrightNetFoundation)</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<PropertyGroup Condition="'$(PgoInstrument)' == 'true'">
<SkipBuildingInstallers>true</SkipBuildingInstallers>
<PgoTerm>-pgo</PgoTerm>
Expand Down
11 changes: 2 additions & 9 deletions Microsoft.DotNet.Cli.sln
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
Expand All @@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this is more of an "asset" to redist and not an independent project. This is now in src/redist/projects and gets built by redist (which simply is a repackage of the SDK resolver). It has no source code or anything. It doesn't need to be part of the SLN.

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}"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
48 changes: 0 additions & 48 deletions Native.sln

This file was deleted.

11 changes: 5 additions & 6 deletions eng/AfterSigning.targets
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>
5 changes: 2 additions & 3 deletions eng/Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
<!-- Regular build -->
<ItemGroup>
<ProjectToBuild Include="$(RepoRoot)Microsoft.DotNet.Cli.sln" />
<ProjectToBuild Condition="'$(OS)' == 'Windows_NT' And ('$(Architecture)' == 'x86' Or '$(Architecture)' == 'x64' Or '$(Architecture)' == 'arm64' Or '$(Architecture)' == 'arm')"
Include="$(RepoRoot)eng\version.csproj;
$(RepoRoot)eng\native.proj" />
<ProjectToBuild Condition="'$(OS)' == 'Windows_NT' And ('$(Architecture)' == 'x86' Or '$(Architecture)' == 'x64' Or '$(Architecture)' == 'arm64')"
Include="$(RepoRoot)src\finalizer\finalizer-build.csproj" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down
17 changes: 9 additions & 8 deletions eng/ManualVersions.props
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project>

<!-- The following properties (unlike those in version.props) are maintained manually. So
when there is a merge conflict, the highest version should generally be chosen, rather
than keeping what's in the branch, which is the usual strategy with version.props merge
conflicts.

Basically: In this file, choose the highest version when resolving merge conflicts.
<!--
The following properties (unlike those in version.props) are maintained manually. So
when there is a merge conflict, the highest version should generally be chosen, rather
than keeping what's in the branch, which is the usual strategy with version.props merge
conflicts.

Basically: In this file, choose the highest version when resolving merge conflicts.
-->
<PropertyGroup>
<MicrosoftWindowsSDKNETRef10_0_17763PackageVersion>10.0.17763.31</MicrosoftWindowsSDKNETRef10_0_17763PackageVersion>
Expand All @@ -16,4 +16,5 @@
<MicrosoftWindowsSDKNETRef10_0_22000PackageVersion>10.0.22000.31</MicrosoftWindowsSDKNETRef10_0_22000PackageVersion>
<MicrosoftWindowsSDKNETRef10_0_22621PackageVersion>10.0.22621.31</MicrosoftWindowsSDKNETRef10_0_22621PackageVersion>
</PropertyGroup>

</Project>
9 changes: 3 additions & 6 deletions eng/Publishing.props
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,15 @@
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)productCommit-*.txt.sha512" Condition=" '$(PublishBinariesAndBadge)' == 'false'" />
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)productVersion.txt.sha512" Condition=" '$(OS)' != 'Windows_NT' or '$(Architecture)' != 'x64'" />
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)sdk-productVersion.txt.sha512" Condition=" '$(OS)' != 'Windows_NT' or '$(Architecture)' != 'x64'" />
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)*.zip.sha512" Condition=" '$(PublishBinariesAndBadge)' == 'false' "/>
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)*.tar.gz.sha512" Condition=" '$(PublishBinariesAndBadge)' == 'false' "/>
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)*.zip.sha512" Condition=" '$(PublishBinariesAndBadge)' == 'false' " />
<CheckSumsToPublish Remove="$(ArtifactsShippingPackagesDir)*.tar.gz.sha512" Condition=" '$(PublishBinariesAndBadge)' == 'false' " />
</ItemGroup>

<Target Name="PublishSdkAssetsAndChecksums"
BeforeTargets="Publish"
Condition="$(DotNetPublishUsingPipelines)">

<ReadLinesFromFile File="$(ArtifactsTmpDir)FullNugetVersion.version">
<Output
TaskParameter="Lines"
PropertyName="FullNugetVersion"/>
<Output TaskParameter="Lines" PropertyName="FullNugetVersion" />
</ReadLinesFromFile>

<ItemGroup>
Expand Down
7 changes: 3 additions & 4 deletions eng/Signing.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
custom publishing target. And should not be picked up by arcade's default publishing logic. -->
<ItemsToSignPostBuild Remove="*.wixpack.zip" />
</ItemGroup>

<ItemGroup Condition="'$(PostBuildSign)' != 'true'">
<ItemsToSign Remove="@(ItemsToSign)" />
<ItemsToSign Include="$(ArtifactsPackagesDir)**\*.exe" />
Expand All @@ -17,10 +18,7 @@
<ExternalCertificateId Condition="'$(ExternalCertificateId)' == ''">3PartySHA2</ExternalCertificateId>
<InternalCertificateId Condition="'$(InternalCertificateId)' == ''">MicrosoftDotNet500</InternalCertificateId>

<!--
Signing of shipping artifacts (layout, msi, bundle) are handled separately.
It is therefore expected that <ItemsToSign> could be an empty set.
-->
<!-- Signing of shipping artifacts (layout, msi, bundle) are handled separately. It is therefore expected that <ItemsToSign> could be an empty set. -->
<AllowEmptySignList>true</AllowEmptySignList>
<AllowEmptySignPostBuildList>true</AllowEmptySignPostBuildList>

Expand All @@ -33,6 +31,7 @@
<FileSignInfo Include="MessagePack.dll" CertificateName="$(ExternalCertificateId)" />
<FileSignInfo Include="Nerdbank.Streams.dll" CertificateName="$(ExternalCertificateId)" />
<FileSignInfo Include="StreamJsonRpc.dll" CertificateName="$(ExternalCertificateId)" />
<FileSignInfo Include="Valleysoft.DockerCredsProvider.dll" CertificateName="$(ExternalCertificateId)" />

<!-- Files in the layout that should not be signed -->
<FileSignInfo Include="apphost.exe" CertificateName="None" />
Expand Down
9 changes: 4 additions & 5 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
<MicrosoftAspNetCoreAppRefPackageVersion>9.0.0-preview.4.24205.2</MicrosoftAspNetCoreAppRefPackageVersion>
<MicrosoftAspNetCoreAppRefInternalPackageVersion>9.0.0-preview.4.24205.2</MicrosoftAspNetCoreAppRefInternalPackageVersion>
<VSRedistCommonAspNetCoreSharedFrameworkx6490PackageVersion>9.0.0-preview.4.24205.2</VSRedistCommonAspNetCoreSharedFrameworkx6490PackageVersion>
<dotnetdevcertsPackageVersion>9.0.0-preview.4.24205.2</dotnetdevcertsPackageVersion>
<dotnetuserjwtsPackageVersion>9.0.0-preview.4.24205.2</dotnetuserjwtsPackageVersion>
<dotnetusersecretsPackageVersion>9.0.0-preview.4.24205.2</dotnetusersecretsPackageVersion>
<DotnetDevCertsPackageVersion>9.0.0-preview.4.24205.2</DotnetDevCertsPackageVersion>
<DotnetUserJwtsPackageVersion>9.0.0-preview.4.24205.2</DotnetUserJwtsPackageVersion>
<DotnetUserSecretsPackageVersion>9.0.0-preview.4.24205.2</DotnetUserSecretsPackageVersion>
</PropertyGroup>
<PropertyGroup>
<MicroBuildCorePackageVersion>0.2.0</MicroBuildCorePackageVersion>
Expand Down Expand Up @@ -112,8 +112,7 @@
<MicrosoftWindowsDesktopAppRefPackageVersion>9.0.0-preview.4.24204.1</MicrosoftWindowsDesktopAppRefPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Runtime and Apphost pack versions are the same for all RIDs. We flow the x64 -->
<!-- version above and create aliases without the winx64 here for clarity elsewhere. -->
<!-- Runtime and Apphost pack versions are the same for all RIDs. We flow the x64 version above and create aliases without the winx64 here for clarity elsewhere. -->
<MicrosoftNETCoreAppHostPackageVersion>$(MicrosoftNETCoreAppHostwinx64PackageVersion)</MicrosoftNETCoreAppHostPackageVersion>
<MicrosoftNETCoreAppRuntimePackageVersion>$(MicrosoftNETCoreAppRuntimewinx64PackageVersion)</MicrosoftNETCoreAppRuntimePackageVersion>
<MicrosoftAspNetCoreAppRuntimePackageVersion>$(MicrosoftAspNetCoreAppRuntimewinx64PackageVersion)</MicrosoftAspNetCoreAppRuntimePackageVersion>
Expand Down
16 changes: 0 additions & 16 deletions eng/native.proj

This file was deleted.

8 changes: 0 additions & 8 deletions eng/version.csproj

This file was deleted.

4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24203.1",
"Microsoft.DotNet.CMake.Sdk": "9.0.0-beta.24203.1"
}
"Microsoft.DotNet.CMake.Sdk": "9.0.0-beta.24203.1",
"Microsoft.Build.NoTargets": "3.7.0" }
}
3 changes: 0 additions & 3 deletions run-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ if ($PgoInstrument) {

if ($Sign) {
$Parameters = "$Parameters -sign /p:SignCoreSdk=true"

# Workaround https://github.com/dotnet/arcade/issues/1776
$WarnAsError = $false
Copy link
Member Author

Choose a reason for hiding this comment

The 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.

Copy link
Member

Choose a reason for hiding this comment

The 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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ src/fsharp/setup/resources/eula/*.rtf

# False positive
src/installer/src/core-sdk-tasks/BuildFPMToolPreReqs.cs|json
src/installer/src/redist/targets/packaging/osx/clisdk/resources/en.lproj/welcome.html|cecill-c
src/installer/src/redist/packaging/osx/resources/en.lproj/welcome.html|cecill-c
src/installer/THIRD-PARTY-NOTICES|proprietary-license

# Configuration, doesn't apply to source directly
src/installer/src/VirtualMonoRepo/THIRD-PARTY-NOTICES.template.txt
src/installer/src/redist/targets/packaging/**/*.json
src/installer/src/redist/packaging/**/*.json

#
# msbuild
Expand Down
13 changes: 3 additions & 10 deletions src/core-sdk-tasks/AddMetadataIsPE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The 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);
}
Expand Down
Loading