Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthsparks <thsparks@microsoft.com>2022-03-04 09:02:55 +0300
committerthsparks <thsparks@microsoft.com>2022-03-04 09:02:55 +0300
commitf2838cff2163b3cea750853b545df75975e591ea (patch)
tree39fa11b6e0cbca2d7b6f4e091e9e07807a7a0aa3
parenteb0113b3c22fa198694fc27323514dd15bb0293b (diff)
Enable MicroBuild Signing for Xamarin.PropertyEditing and Xamarin.PropertyEditing.Windows.csproj
-rw-r--r--Xamarin.PropertyEditing.Windows/Xamarin.PropertyEditing.Windows.csproj10
-rw-r--r--Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj17
2 files changed, 27 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing.Windows/Xamarin.PropertyEditing.Windows.csproj b/Xamarin.PropertyEditing.Windows/Xamarin.PropertyEditing.Windows.csproj
index 42f3aba..0fe92d6 100644
--- a/Xamarin.PropertyEditing.Windows/Xamarin.PropertyEditing.Windows.csproj
+++ b/Xamarin.PropertyEditing.Windows/Xamarin.PropertyEditing.Windows.csproj
@@ -31,6 +31,11 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
+ <PackageReference Include="Microsoft.VisualStudioEng.MicroBuild.Core">
+ <Version>1.0.0</Version>
+ </PackageReference>
+ </ItemGroup>
+ <ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="PresentationFramework.Aero" />
@@ -223,5 +228,10 @@
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
+ <ItemGroup Condition="'$(Configuration)' == 'Release' Or '$(Configuration)' == 'ReleaseWindows'">
+ <FilesToSign Include="$(OutDir)\$(AssemblyName).dll">
+ <Authenticode>Microsoft400</Authenticode>
+ </FilesToSign>
+ </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> \ No newline at end of file
diff --git a/Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj b/Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj
index 05e25e3..5a1ef6b 100644
--- a/Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj
+++ b/Xamarin.PropertyEditing/Xamarin.PropertyEditing.csproj
@@ -5,6 +5,12 @@
</PropertyGroup>
<ItemGroup>
+ <PackageReference Include="Microsoft.VisualStudioEng.MicroBuild.Core">
+ <Version>1.0.0</Version>
+ </PackageReference>
+ </ItemGroup>
+
+ <ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
@@ -20,4 +26,15 @@
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
+
+ <Target Name="GetFilesToSign" BeforeTargets="SignFiles" Condition=" '$(Configuration)' == 'Release' Or '$(Configuration)' == 'ReleaseWindows'">
+ <ItemGroup>
+ <FilesToSign Include="$(OutDir)\**\$(AssemblyName).resources.dll">
+ <Authenticode>Microsoft400</Authenticode>
+ </FilesToSign>
+ <FilesToSign Include="$(OutDir)\$(AssemblyName).dll">
+ <Authenticode>Microsoft400</Authenticode>
+ </FilesToSign>
+ </ItemGroup>
+ </Target>
</Project>