Skip to content

Commit

Permalink
Remove release from test now that its opt in
Browse files Browse the repository at this point in the history
Code cleanup

Fix whitespace issues

Fix whitespace again

[SQUASHED] Code Cleanup Changes
  • Loading branch information
nagilson committed Jun 23, 2022
1 parent 6241d52 commit a81c83d
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Copyright (c) .NET Foundation. All rights reserved.
build step's minimal output. Otherwise there is no indication at minimal verbosity of where
the published assets were copied. -->
<Message Importance="High" Text="$(MSBuildProjectName) -> $([System.IO.Path]::GetFullPath('$(PublishDir)'))" />

<AllowEmptyTelemetry EventName="PublishProperties" EventData="PublishReadyToRun=$(PublishReadyToRun);PublishTrimmed=$(PublishTrimmed);PublishSingleFile=$(PublishSingleFile)" />
</Target>

Expand Down Expand Up @@ -476,37 +477,37 @@ Copyright (c) .NET Foundation. All rights reserved.
ResolveRuntimePackAssets;
_ComputePackageReferencePublish">

<!-- For future: Delete ResolveCopyLocalAssets task. Need to figure out how to get correct DestinationSubPath for
<!-- For future: Delete ResolveCopyLocalAssets task. Need to figure out how to get correct DestinationSubPath for
PreserveStoreLayout without this task, and how to handle RuntimeStorePackages. -->
<ResolveCopyLocalAssets AssetsFilePath="$(ProjectAssetsFile)"
TargetFramework="$(TargetFramework)"
RuntimeIdentifier="$(RuntimeIdentifier)"
PlatformLibraryName="$(MicrosoftNETPlatformLibrary)"
RuntimeFrameworks="@(RuntimeFramework)"
ExcludedPackageReferences="@(_ExcludeFromPublishPackageReference)"
RuntimeStorePackages="@(RuntimeStorePackages)"
PreserveStoreLayout="$(PreserveStoreLayout)"
ResolveRuntimeTargets="$(CopyLocalRuntimeTargetAssets)"
IsSelfContained="$(SelfContained)"
Condition="'$(PreserveStoreLayout)' == 'true' Or '@(RuntimeStorePackages)' != ''">
<Output TaskParameter="ResolvedAssets" ItemName="_ResolvedCopyLocalPublishAssets" />
</ResolveCopyLocalAssets>


<ItemGroup>
<_ResolvedCopyLocalPublishAssets Include="@(RuntimePackAsset)"
Condition="('$(SelfContained)' == 'true' Or '%(RuntimePackAsset.RuntimePackAlwaysCopyLocal)' == 'true') and '%(RuntimePackAsset.AssetType)' != 'pgodata'" />
</ItemGroup>

<ItemGroup Condition="'$(_UseBuildDependencyFile)' != 'true'">
<!-- Remove the apphost executable from publish copy local assets; we will copy the generated apphost instead -->
<_ResolvedCopyLocalPublishAssets Remove="@(_NativeRestoredAppHostNETCore)" />
</ItemGroup>

<ItemGroup Condition="'$(PreserveStoreLayout)' != 'true' And '@(RuntimeStorePackages)' == ''">
<_ResolvedCopyLocalPublishAssets Include="@(_ResolvedCopyLocalBuildAssets)"
Condition="'%(_ResolvedCopyLocalBuildAssets.CopyToPublishDirectory)' != 'false' "/>
</ItemGroup>
<ResolveCopyLocalAssets AssetsFilePath="$(ProjectAssetsFile)"
TargetFramework="$(TargetFramework)"
RuntimeIdentifier="$(RuntimeIdentifier)"
PlatformLibraryName="$(MicrosoftNETPlatformLibrary)"
RuntimeFrameworks="@(RuntimeFramework)"
ExcludedPackageReferences="@(_ExcludeFromPublishPackageReference)"
RuntimeStorePackages="@(RuntimeStorePackages)"
PreserveStoreLayout="$(PreserveStoreLayout)"
ResolveRuntimeTargets="$(CopyLocalRuntimeTargetAssets)"
IsSelfContained="$(SelfContained)"
Condition="'$(PreserveStoreLayout)' == 'true' Or '@(RuntimeStorePackages)' != ''">
<Output TaskParameter="ResolvedAssets" ItemName="_ResolvedCopyLocalPublishAssets" />
</ResolveCopyLocalAssets>


<ItemGroup>
<_ResolvedCopyLocalPublishAssets Include="@(RuntimePackAsset)"
Condition="('$(SelfContained)' == 'true' Or '%(RuntimePackAsset.RuntimePackAlwaysCopyLocal)' == 'true') and '%(RuntimePackAsset.AssetType)' != 'pgodata'" />
</ItemGroup>

<ItemGroup Condition="'$(_UseBuildDependencyFile)' != 'true'">
<!-- Remove the apphost executable from publish copy local assets; we will copy the generated apphost instead -->
<_ResolvedCopyLocalPublishAssets Remove="@(_NativeRestoredAppHostNETCore)" />
</ItemGroup>

<ItemGroup Condition="'$(PreserveStoreLayout)' != 'true' And '@(RuntimeStorePackages)' == ''">
<_ResolvedCopyLocalPublishAssets Include="@(_ResolvedCopyLocalBuildAssets)"
Condition="'%(_ResolvedCopyLocalBuildAssets.CopyToPublishDirectory)' != 'false' "/>
</ItemGroup>

</Target>

Expand All @@ -518,13 +519,13 @@ Copyright (c) .NET Foundation. All rights reserved.
============================================================
-->
<UsingTask TaskName="ParseTargetManifests" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
<Target Name="_ParseTargetManifestFiles"
Condition="'$(TargetManifestFiles)' != ''"
Returns="@(RuntimeStorePackages)">
<Target Name="_ParseTargetManifestFiles"
Condition="'$(TargetManifestFiles)' != ''"
Returns="@(RuntimeStorePackages)">

<ParseTargetManifests TargetManifestFiles="$(TargetManifestFiles)">
<Output TaskParameter="RuntimeStorePackages" ItemName="RuntimeStorePackages"/>
</ParseTargetManifests>
<ParseTargetManifests TargetManifestFiles="$(TargetManifestFiles)">
<Output TaskParameter="RuntimeStorePackages" ItemName="RuntimeStorePackages"/>
</ParseTargetManifests>

</Target>

Expand Down Expand Up @@ -875,7 +876,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<AppHostFile>$(PublishedSingleFileName)</AppHostFile>
</PropertyGroup>
</Target>

<UsingTask TaskName="GenerateBundle" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
<Target Name="GenerateSingleFileBundle"
Condition="'$(PublishSingleFile)' == 'true'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<!-- This property disables the conflict resolution logic from the Microsoft.Packaging.Tools package, which is superceded by the logic here in the SDK -->
<DisableHandlePackageFileConflicts>true</DisableHandlePackageFileConflicts>
</PropertyGroup>

<!-- Default configuration and platform to Debug|AnyCPU-->
<PropertyGroup>
<Configurations Condition=" '$(Configurations)' == '' ">Debug;Release</Configurations>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ public void NativeAotStaticLib_only_runs_when_switch_is_enabled(string targetFra
testProject.AdditionalProperties["RuntimeIdentifier"] = rid;
testProject.AdditionalProperties["NativeLib"] = "Static";
testProject.AdditionalProperties["SelfContained"] = "true";
testProject.AdditionalProperties["Configuration"] = "Release";
var testAsset = _testAssetsManager.CreateTestProject(testProject);

var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public GivenDotnetPublishInvocation(ITestOutputHelper output)
[InlineData(new string[] { "--verbosity", "minimal" }, "-verbosity:minimal")]
[InlineData(new string[] { "<project>" }, "<project>")]
[InlineData(new string[] { "<project>", "<extra-args>" }, "<project> <extra-args>")]
[InlineData(new string[] { "--disable-build-servers" }, "-p:UseRazorBuildServer=false -p:UseSharedCompilation=false /nodeReuse:false")]
public void MsbuildInvocationIsCorrect(string[] args, string expectedAdditionalArgs)
{
CommandDirectoryContext.PerformActionWithBasePath(WorkingDirectory, () =>
Expand Down
1 change: 1 addition & 0 deletions src/WebSdk/Publish/Targets/Microsoft.NET.Sdk.Publish.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

</Project>

0 comments on commit a81c83d

Please sign in to comment.