add rule to ignore the upload folder when publishing
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
<IISExpressAnonymousAuthentication />
|
<IISExpressAnonymousAuthentication />
|
||||||
<IISExpressWindowsAuthentication />
|
<IISExpressWindowsAuthentication />
|
||||||
<IISExpressUseClassicPipelineMode />
|
<IISExpressUseClassicPipelineMode />
|
||||||
|
<AfterAddIisSettingAndFileContentsToSourceManifest>AddSkipRules</AfterAddIisSettingAndFileContentsToSourceManifest>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@@ -486,6 +487,24 @@
|
|||||||
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
|
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
|
||||||
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
|
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
<Target Name="AddSkipRules">
|
||||||
|
<ItemGroup>
|
||||||
|
<MsDeploySkipRules Include="SkipDeleteAppData">
|
||||||
|
<SkipAction>Delete</SkipAction>
|
||||||
|
<ObjectName>filePath</ObjectName>
|
||||||
|
<AbsolutePath>$(_Escaped_PackageTempDir)\\App_Data\\.*</AbsolutePath>
|
||||||
|
<XPath>
|
||||||
|
</XPath>
|
||||||
|
</MsDeploySkipRules>
|
||||||
|
<MsDeploySkipRules Include="SkipDeleteAppData">
|
||||||
|
<SkipAction>Delete</SkipAction>
|
||||||
|
<ObjectName>dirPath</ObjectName>
|
||||||
|
<AbsolutePath>$(_Escaped_PackageTempDir)\\App_Data\\.*</AbsolutePath>
|
||||||
|
<XPath>
|
||||||
|
</XPath>
|
||||||
|
</MsDeploySkipRules>
|
||||||
|
</ItemGroup>
|
||||||
|
</Target>
|
||||||
<ProjectExtensions>
|
<ProjectExtensions>
|
||||||
<VisualStudio>
|
<VisualStudio>
|
||||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||||
|
|||||||
Reference in New Issue
Block a user