add rule to ignore the upload folder when publishing
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
<IISExpressAnonymousAuthentication />
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<AfterAddIisSettingAndFileContentsToSourceManifest>AddSkipRules</AfterAddIisSettingAndFileContentsToSourceManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -486,6 +487,24 @@
|
||||
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
|
||||
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
|
||||
</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>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
|
||||
Reference in New Issue
Block a user