Prevent the locking of build tasks (#13894)
* Instead of locking the build output directly, lock the copy and don't fail the entire build
This commit is contained in:
Родитель
9f47a05e26
Коммит
ff9847da65
|
@ -3,7 +3,7 @@
|
|||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||
|
||||
.nuspec/
|
||||
.nuspec/**/*.dll
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<_ResizetizerTaskAssemblyName>Microsoft.Maui.Resizetizer.dll</_ResizetizerTaskAssemblyName>
|
||||
<_ResizetizerTaskAssemblyName>netstandard2.0\Microsoft.Maui.Resizetizer.dll</_ResizetizerTaskAssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<UsingTask
|
|
@ -1274,6 +1274,8 @@ Global
|
|||
{551B2209-4298-4D60-B55C-79077B8BC244}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{551B2209-4298-4D60-B55C-79077B8BC244}.Release|x86.Build.0 = Release|Any CPU
|
||||
{4BD0D88F-7E7A-4C3B-9E34-BF3717A8FF4B}.Debug|Any CPU.ActiveCfg = Debug|x86
|
||||
{4BD0D88F-7E7A-4C3B-9E34-BF3717A8FF4B}.Debug|Any CPU.Build.0 = Debug|x86
|
||||
{4BD0D88F-7E7A-4C3B-9E34-BF3717A8FF4B}.Debug|Any CPU.Deploy.0 = Debug|x86
|
||||
{4BD0D88F-7E7A-4C3B-9E34-BF3717A8FF4B}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||
{4BD0D88F-7E7A-4C3B-9E34-BF3717A8FF4B}.Debug|ARM.Build.0 = Debug|ARM
|
||||
{4BD0D88F-7E7A-4C3B-9E34-BF3717A8FF4B}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||
|
@ -1346,7 +1348,6 @@ Global
|
|||
{676C1EE2-C2B3-4C01-9781-3DAE0995D2FE} = {806499EB-C2CC-4E85-BC19-613F3DE5E0C3}
|
||||
{D51AD52D-C4C6-445A-BD0F-884BE5C1C526} = {806499EB-C2CC-4E85-BC19-613F3DE5E0C3}
|
||||
{F2379E0F-524F-47BC-877C-0428E4C836D4} = {D5B986A3-7FC9-437E-8030-349AA4698DFD}
|
||||
{CB2072E0-A437-4811-AE17-16CAE0DDA1B1} = {99FDF6CA-DCF8-4CB2-B2EA-E24CCB601232}
|
||||
{E4CB9988-7348-4D55-A08E-85907732F8DA} = {0F9BA970-11B1-4ACA-AF41-1021AFC0F29C}
|
||||
{551B2209-4298-4D60-B55C-79077B8BC244} = {0F9BA970-11B1-4ACA-AF41-1021AFC0F29C}
|
||||
{4BD0D88F-7E7A-4C3B-9E34-BF3717A8FF4B} = {99FDF6CA-DCF8-4CB2-B2EA-E24CCB601232}
|
||||
|
|
|
@ -17,9 +17,7 @@
|
|||
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
|
||||
<PackageCertificateThumbprint>DCE37AAC07E0E0608894CD251EE86EA3A3DCAA8C</PackageCertificateThumbprint>
|
||||
<PackageCertificateKeyFile>Essentials.DeviceTests.UWP_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
|
|
@ -95,5 +95,5 @@
|
|||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
||||
<Import Project="..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets" Condition="Exists('..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets')" />
|
||||
<Import Project="..\..\..\..\..\.nuspec\Microsoft.Maui.Resizetizer.targets" />
|
||||
</Project>
|
|
@ -156,5 +156,5 @@
|
|||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||
<Import Project="..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets" Condition="Exists('..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets')" />
|
||||
<Import Project="..\..\..\..\..\.nuspec\Microsoft.Maui.Resizetizer.targets" />
|
||||
</Project>
|
|
@ -110,5 +110,5 @@
|
|||
<PackageReference Include="Xamarin.Essentials" Version="1.5.3.2" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets" Condition="Exists('..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets')" />
|
||||
<Import Project="..\..\..\..\..\.nuspec\Microsoft.Maui.Resizetizer.targets" />
|
||||
</Project>
|
|
@ -93,5 +93,5 @@
|
|||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
||||
<Import Project="..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets" Condition="Exists('..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets')" />
|
||||
<Import Project="..\..\..\..\..\.nuspec\Microsoft.Maui.Resizetizer.targets" />
|
||||
</Project>
|
|
@ -31,6 +31,6 @@
|
|||
<SharedFont Include="feather.ttf" Alias="Feather" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets" Condition="Exists('..\..\src\bin\$(Configuration)\netstandard2.0\Microsoft.Maui.Resizetizer.targets')" />
|
||||
<Import Project="..\..\..\..\..\.nuspec\Microsoft.Maui.Resizetizer.targets" />
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -40,9 +40,9 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="$(TargetPath)" Visible="False" Pack="True" PackagePath="buildTransitive\;build\" />
|
||||
<None Include="@(_ItemToPack)" Visible="False" Pack="True" PackagePath="buildTransitive\;build\" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="Microsoft.Maui.Resizetizer.targets" Pack="True" PackagePath="buildTransitive\;build\" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="$(TargetPath)" Visible="False" Pack="True" PackagePath="buildTransitive\$(TargetFramework);build\$(TargetFramework)" />
|
||||
<None Include="@(_ItemToPack)" Visible="False" Pack="True" PackagePath="buildTransitive\$(TargetFramework);build\$(TargetFramework)" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="..\..\..\..\.nuspec\Microsoft.Maui.Resizetizer.targets" Pack="True" PackagePath="buildTransitive;build" CopyToOutputDirectory="PreserveNewest" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -66,4 +66,11 @@
|
|||
<PackageReference Include="Svg2VectorDrawable.Net" Version="0.1.0" GeneratePathProperty="true" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="_CopyToNuspecDir" AfterTargets="Build">
|
||||
<ItemGroup>
|
||||
<_CopyItems Include="$(TargetDir)*.dll" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(_CopyItems)" DestinationFolder="..\..\..\..\.nuspec\$(TargetFramework)\" ContinueOnError="true" Retries="0" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче