Skip to content

Commit 994ab00

Browse files
committed
Issue 6 with transforms fixed.
1 parent f548249 commit 994ab00

4 files changed

+34
-16
lines changed

Project/DownloadIfMissingFileBlob.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@
147147
<ItemGroup>
148148
<None Include="packages.config" />
149149
<None Include="README.MD" />
150-
<None Include="web.config.transform">
150+
<None Include="web.config.uninstall.xdt">
151+
<SubType>Designer</SubType>
152+
</None>
153+
<None Include="web.config.install.xdt">
151154
<SubType>Designer</SubType>
152155
</None>
153156
<None Include="App.config">

Project/web.config.install.xdt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
3+
<episerver.framework>
4+
<blob defaultProvider="MissingFileBlobProvider" xdt:Transform="InsertIfMissing">
5+
<providers>
6+
<add name="MissingFileBlobProvider"
7+
Activated="false"
8+
ProdUrl="http://www.gosso.se/"
9+
RestrictedFileExt=".docx.doc.pdf.exe.zip.mov.mp4"
10+
type="Gosso.EPiServerAddOn.DownloadIfMissingFileBlob.Provider, Gosso.EPiServerAddOn.DownloadIfMissingFileBlob"
11+
xdt:Transform="InsertIfMissing" />
12+
</providers>
13+
</blob>
14+
</episerver.framework>
15+
</configuration>

Project/web.config.transform

Lines changed: 0 additions & 15 deletions
This file was deleted.

Project/web.config.uninstall.xdt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
3+
<episerver.framework>
4+
<blob defaultProvider="MissingFileBlobProvider" xdt:Transform="Remove" xdt:Locator="Match(defaultProvider)">
5+
<providers>
6+
<add name="MissingFileBlobProvider"
7+
Activated="false"
8+
ProdUrl="http://www.gosso.se/"
9+
RestrictedFileExt=".docx.doc.pdf.exe.zip.mov.mp4"
10+
type="Gosso.EPiServerAddOn.DownloadIfMissingFileBlob.Provider, Gosso.EPiServerAddOn.DownloadIfMissingFileBlob"
11+
xdt:Transform="Remove" />
12+
</providers>
13+
</blob>
14+
</episerver.framework>
15+
</configuration>

0 commit comments

Comments
 (0)