Skip to content

Commit

Permalink
Clean up samples and SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
CZEMacLeod committed Apr 1, 2022
1 parent 1d35cd7 commit 3480bcf
Show file tree
Hide file tree
Showing 17 changed files with 213 additions and 151 deletions.
9 changes: 2 additions & 7 deletions MSBuild.SDK.SystemWeb.sln
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Razor", "Razor", "{26AD80FE
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExampleRazorLibraryApplication", "samples\RazorLibrary\ExampleRazorLibraryApplication\ExampleRazorLibraryApplication.csproj", "{3BC6F60B-0AC5-4300-9DFD-4B65D97FFD12}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExampleRazorLibrary", "samples\RazorLibrary\ExampleRazorLibrary\ExampleRazorLibrary.csproj", "{A699C2E4-43C7-409D-BC2B-1197E61FD9BC}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExampleRazorLibrary", "samples\RazorLibrary\ExampleRazorLibrary\ExampleRazorLibrary.csproj", "{A699C2E4-43C7-409D-BC2B-1197E61FD9BC}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ExampleRazorLibraryVB", "samples\RazorLibrary\ExampleRazorLibraryVB\ExampleRazorLibraryVB.vbproj", "{AD80B3C1-916E-4E46-BF07-6AEE8606AB00}"
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "ExampleRazorLibraryVB", "samples\RazorLibrary\ExampleRazorLibraryVB\ExampleRazorLibraryVB.vbproj", "{AD80B3C1-916E-4E46-BF07-6AEE8606AB00}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -79,27 +79,22 @@ Global
{0272B7E9-0AA9-49C4-89EC-5223AFFFE3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0272B7E9-0AA9-49C4-89EC-5223AFFFE3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0272B7E9-0AA9-49C4-89EC-5223AFFFE3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0272B7E9-0AA9-49C4-89EC-5223AFFFE3B8}.Release|Any CPU.Build.0 = Release|Any CPU
{8EEC969D-F112-437D-8967-1FBB0C4624BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8EEC969D-F112-437D-8967-1FBB0C4624BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8EEC969D-F112-437D-8967-1FBB0C4624BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8EEC969D-F112-437D-8967-1FBB0C4624BE}.Release|Any CPU.Build.0 = Release|Any CPU
{0C109944-853C-4B2A-A85C-C7488E88592A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0C109944-853C-4B2A-A85C-C7488E88592A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0C109944-853C-4B2A-A85C-C7488E88592A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0C109944-853C-4B2A-A85C-C7488E88592A}.Release|Any CPU.Build.0 = Release|Any CPU
{3BC6F60B-0AC5-4300-9DFD-4B65D97FFD12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3BC6F60B-0AC5-4300-9DFD-4B65D97FFD12}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3BC6F60B-0AC5-4300-9DFD-4B65D97FFD12}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3BC6F60B-0AC5-4300-9DFD-4B65D97FFD12}.Release|Any CPU.Build.0 = Release|Any CPU
{A699C2E4-43C7-409D-BC2B-1197E61FD9BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A699C2E4-43C7-409D-BC2B-1197E61FD9BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A699C2E4-43C7-409D-BC2B-1197E61FD9BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A699C2E4-43C7-409D-BC2B-1197E61FD9BC}.Release|Any CPU.Build.0 = Release|Any CPU
{AD80B3C1-916E-4E46-BF07-6AEE8606AB00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AD80B3C1-916E-4E46-BF07-6AEE8606AB00}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD80B3C1-916E-4E46-BF07-6AEE8606AB00}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AD80B3C1-916E-4E46-BF07-6AEE8606AB00}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@
<ItemGroup>
<None Include="My Project\launchSettings.json" />
</ItemGroup>
<ItemGroup>
<RazorAppConfigFiles Include="Views\web.config" />
</ItemGroup>
</Project>
49 changes: 49 additions & 0 deletions samples/RazorLibrary/ExampleRazorLibraryVB/Views/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup>
</configSections>
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<pages pageBaseType="System.Web.Mvc.WebViewPage">
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Optimization" />
<add namespace="ExampleRazorLibrary" />
</namespaces>
</pages>
</system.web.webPages.razor>
<appSettings>
<add key="webpages:Enabled" value="false" />
</appSettings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly>
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.webServer>
<handlers>
<remove name="BlockViewHandler" />
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
</handlers>
</system.webServer>
<system.web>
<compilation>
<assemblies>
<add assembly="System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
</system.web>
</configuration>
17 changes: 14 additions & 3 deletions samples/RazorLibrary/ExampleRazorLibraryVB/Web.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
https://go.microsoft.com/fwlink/?LinkId=169433
Expand All @@ -15,4 +14,16 @@
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
</compilers>
</system.codedom>
</configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
</PropertyGroup>
<ItemGroup>
<None Include="version.json" />
</ItemGroup>
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OverwriteAppConfigWithBindingRedirects Condition="'$(OverwriteAppConfigWithBindingRedirects)'==''">true</OverwriteAppConfigWithBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition="'$(OverwriteAppConfigWithBindingRedirects)'=='true'">
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="UpdateConfigWithBindingRedirects" AfterTargets="AfterBuild" Condition="'$(OverwriteAppConfigWithBindingRedirects)'=='true'">
<ItemGroup>
<_DllConfig Remove="@(_DllConfig)" />
<_AppConfig Remove="@(_AppConfig)" />
<_ConfigFile Remove="@(_ConfigFileHash)" />
<_DllConfig Include="$(OutDir)$(AssemblyName).dll.config" />
<_AppConfig Include="web.config" />
</ItemGroup>
<GetFileHash Files="@(_DllConfig)">
<Output TaskParameter="Hash" PropertyName="_DllConfigHash" />
<Output TaskParameter="Items" ItemName="_DllConfigFileHash" />
</GetFileHash>
<GetFileHash Files="@(_AppConfig)">
<Output TaskParameter="Hash" PropertyName="_AppConfigHash" />
<Output TaskParameter="Items" ItemName="_AppConfigFileHash" />
</GetFileHash>
<ItemGroup>
<_ConfigFileHash Include="@(_DllConfigFileHash)" />
<_ConfigFileHash Include="@(_AppConfigFileHash)" />
</ItemGroup>
<Message Text="%(_ConfigFileHash.Identity): %(_ConfigFileHash.FileHash)" Importance="high" />
<Warning Text="Replacing web.config due to changes during compile - This should clear warning MSB3276 on next compile" File="web.config" Condition="'$(_DllConfigHash)'!='$(_AppConfigHash)'" />
<PropertyGroup>
<ConfigNameSpaces>&lt;Namespace Prefix='asm' Uri='urn:schemas-microsoft-com:asm.v1' /&gt;</ConfigNameSpaces>
</PropertyGroup>
<XmlPeek XmlInputPath="$(OutDir)$(AssemblyName).dll.config"
Namespaces="$(ConfigNameSpaces)"
Query="/configuration/runtime/asm:assemblyBinding/asm:dependentAssembly" Condition="'$(_DllConfigHash)'!='$(_AppConfigHash)'">
<Output TaskParameter="Result" ItemName="_bindings" />
</XmlPeek>
<Message Text="New Bindings: %(_bindings.Indentity)" Importance="high" />
<PropertyGroup>
<Bindings>@(_bindings ,'')</Bindings>
</PropertyGroup>
<XmlPoke XmlInputPath="%(RazorAppConfigFiles.Identity)"
Namespaces="$(ConfigNameSpaces)"
Query="/configuration/runtime/asm:assemblyBinding"
Value="$(Bindings)"
Condition="'$(_DllConfigHash)'!='$(_AppConfigHash)' AND '@(RazorAppConfigFiles)'!=''"/>
<Copy SourceFiles="$(OutDir)$(AssemblyName).dll.config" DestinationFiles="web.config" Condition="'$(_DllConfigHash)'!='$(_AppConfigHash)'" />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);**\web.config</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);web.config</DefaultItemExcludes>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<ItemGroup Condition="$(EnableDefaultItems)">
<None Include="web.config" />
<RazorAppConfigFiles Include="Views/web.config" Condition="EXISTS('Views/web.config')" />
<RazorAppConfigFiles Include="Areas/**/web.config" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MicrosoftAspNetMvc_Version>5.2.7</MicrosoftAspNetMvc_Version>
<RazorGeneratorMSBuild_Version>2.5.0</RazorGeneratorMSBuild_Version>
<RazorGeneratorMVC_Version>2.4.9</RazorGeneratorMVC_Version>
<MicrosoftNetCompilersToolset_Version>3.8.0</MicrosoftNetCompilersToolset_Version>
<MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version>3.6.0</MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version>
<ExcludeDefaultRazorPackages Condition="'$(ExcludeDefaultRazorPackages)'==''">false</ExcludeDefaultRazorPackages>
</PropertyGroup>
<PropertyGroup Condition="'$(ExcludeDefaultRazorPackages)'=='false'">
<MicrosoftAspNetMvc_Version Condition="'$(MicrosoftAspNetMvc_Version)'==''">5.2.7</MicrosoftAspNetMvc_Version>
<RazorGeneratorMSBuild_Version Condition="'$(RazorGeneratorMSBuild_Version)'==''">2.5.0</RazorGeneratorMSBuild_Version>
<RazorGeneratorMVC_Version Condition="'$(RazorGeneratorMVC_Version)'==''">2.4.9</RazorGeneratorMVC_Version>
<MicrosoftNetCompilersToolset_Version Condition="'$(MicrosoftNetCompilersToolset_Version)'==''">3.8.0</MicrosoftNetCompilersToolset_Version>
<MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version Condition="'$(MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version)'==''">3.6.0</MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">




<!-- Include versioned compilers unless ExcludeASPNetCompilers property is set or we are using Microsoft.Build.CentralPackageVersions -->
<!-- Include versioned compilers unless ExcludeDefaultRazorPackages property is set or we are using Microsoft.Build.CentralPackageVersions -->
<ItemGroup Condition="'$(ExcludeDefaultRazorPackages)'=='false' AND '$(UsingMicrosoftCentralPackageVersionsSdk)'!='true'">
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="$(MicrosoftNetCompilersToolset_Version)" PrivateAssets="All" Condition="'$(MicrosoftNetCompilersToolset_Version)'!=''"/>
<PackageReference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" Version="$(MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version)" Condition="'$(MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version)'!=''" />
Expand All @@ -12,8 +8,7 @@
<PackageReference Include="RazorGenerator.MVC" Version="$(RazorGeneratorMVC_Version)" Condition="'$(RazorGeneratorMVC_Version)'!=''" />
</ItemGroup>

<!-- Include unversioned compilers unless ExcludeASPNetCompilers property is set if we are using Microsoft.Build.CentralPackageVersions -->
<!-- See https://github.com/CZEMacLeod/MSBuild.SDK.SystemWeb/issues/26 and https://github.com/microsoft/MSBuildSdks/issues/320 -->
<!-- Include unversioned compilers unless ExcludeDefaultRazorPackages property is set if we are using Microsoft.Build.CentralPackageVersions -->
<!-- Requires Microsoft.Build.CentralPackageVersions Version 2.1.1 or higher -->
<ItemGroup Condition="'$(ExcludeDefaultRazorPackages)'=='false' AND '$(UsingMicrosoftCentralPackageVersionsSdk)'=='true'">
<PackageReference Include="Microsoft.Net.Compilers.Toolset" PrivateAssets="All"/>
Expand All @@ -22,5 +17,4 @@
<PackageReference Include="RazorGenerator.MVC" />
<PackageReference Include="Microsoft.AspNet.Mvc"/>
</ItemGroup>

</Project>
26 changes: 7 additions & 19 deletions src/MSBuild.SDK.SystemWeb.RazorLibrary/Sdk/Sdk.props
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.DefaultPackages.props"/>
<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.BindingRedirects.props"/>
<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.DefaultItems.props"/>
<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.RazorGeneratorDirectives.props" />

<PropertyGroup>
<UseRazorV4Editor>false</UseRazorV4Editor>
<AppConfig>web.config</AppConfig>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<OverwriteAppConfigWithBindingRedirects Condition="'$(OverwriteAppConfigWithBindingRedirects)'==''">true</OverwriteAppConfigWithBindingRedirects>
<ExcludeDefaultRazorPackages>false</ExcludeDefaultRazorPackages>
</PropertyGroup>

<ItemGroup>
<ProjectCapability Include="SupportsSystemWeb" />
<ProjectCapability Include="LegacyRazorEditor" />
Expand All @@ -18,18 +20,4 @@
<ItemGroup Condition="'$(BuildingInsideVisualStudio)'=='true'">
<AvailableItemName Include="RazorAppConfigFiles" />
</ItemGroup>

<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);**\web.config</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);web.config</DefaultItemExcludes>
</PropertyGroup>

<ItemGroup>
<None Include="web.config" />
<RazorAppConfigFiles Include="Views/web.config" Condition="EXISTS('Views/web.config')" />
<RazorAppConfigFiles Include="Areas/**/web.config" />
</ItemGroup>

<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.DefaultPackages.props"/>
<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.RazorGeneratorDirectives.props" />
</Project>
47 changes: 4 additions & 43 deletions src/MSBuild.SDK.SystemWeb.RazorLibrary/Sdk/Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,12 @@
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
</ItemGroup>

<Target Name="UpdateConfigWithBindingRedirects" AfterTargets="AfterBuild" Condition="'$(OverwriteAppConfigWithBindingRedirects)'=='true'">
<ItemGroup>
<_DllConfig Remove="@(_DllConfig)" />
<_AppConfig Remove="@(_AppConfig)" />
<_ConfigFile Remove="@(_ConfigFileHash)" />
<_DllConfig Include="$(OutDir)$(AssemblyName).dll.config" />
<_AppConfig Include="web.config" />
</ItemGroup>
<GetFileHash Files="@(_DllConfig)">
<Output TaskParameter="Hash" PropertyName="_DllConfigHash" />
<Output TaskParameter="Items" ItemName="_DllConfigFileHash" />
</GetFileHash>
<GetFileHash Files="@(_AppConfig)">
<Output TaskParameter="Hash" PropertyName="_AppConfigHash" />
<Output TaskParameter="Items" ItemName="_AppConfigFileHash" />
</GetFileHash>
<ItemGroup>
<_ConfigFileHash Include="@(_DllConfigFileHash)" />
<_ConfigFileHash Include="@(_AppConfigFileHash)" />
</ItemGroup>
<Message Text="%(_ConfigFileHash.Identity): %(_ConfigFileHash.FileHash)" Importance="high" />
<Warning Text="Replacing web.config due to changes during compile - This should clear warning MSB3276 on next compile" File="web.config" Condition="'$(_DllConfigHash)'!='$(_AppConfigHash)'" />
<PropertyGroup>
<ConfigNameSpaces>&lt;Namespace Prefix='asm' Uri='urn:schemas-microsoft-com:asm.v1' /&gt;</ConfigNameSpaces>
</PropertyGroup>
<XmlPeek XmlInputPath="$(OutDir)$(AssemblyName).dll.config"
Namespaces="$(ConfigNameSpaces)"
Query="/configuration/runtime/asm:assemblyBinding/asm:dependentAssembly" Condition="'$(_DllConfigHash)'!='$(_AppConfigHash)'">
<Output TaskParameter="Result" ItemName="_bindings" />
</XmlPeek>
<Message Text="New Bindings: %(_bindings.Indentity)" Importance="high" />
<PropertyGroup>
<Bindings>@(_bindings ,'')</Bindings>
</PropertyGroup>
<XmlPoke XmlInputPath="%(RazorAppConfigFiles.Identity)"
Namespaces="$(ConfigNameSpaces)"
Query="/configuration/runtime/asm:assemblyBinding"
Value="$(Bindings)"
Condition="'$(_DllConfigHash)'!='$(_AppConfigHash)'"/>
<Copy SourceFiles="$(OutDir)$(AssemblyName).dll.config" DestinationFiles="web.config" Condition="'$(_DllConfigHash)'!='$(_AppConfigHash)'" />
</Target>

<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.DefaultPackages.targets" />
<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.BindingRedirects.targets"/>
<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.DefaultPackages.targets"/>
<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.RazorGeneratorDirectives.targets" />
<Import Project="MSBuild.SDK.SystemWeb.RazorLibrary.DefaultItems.targets"/>

<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />

</Project>
Loading

0 comments on commit 3480bcf

Please sign in to comment.