Include all files in Documents except .cs files
This commit is contained in:
@ -1,12 +0,0 @@
|
|||||||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
|
||||||
<Fragment>
|
|
||||||
<ComponentGroup Id="DocumentTemplateComponents" Directory="ConfigFolderResources">
|
|
||||||
<Component>
|
|
||||||
<File Source="$(TargetDir)\paged.polyfill.js" />
|
|
||||||
</Component>
|
|
||||||
<Component>
|
|
||||||
<File Source="$(var.ElwigProjectDir)\Documents\style.css" />
|
|
||||||
</Component>
|
|
||||||
</ComponentGroup>
|
|
||||||
</Fragment>
|
|
||||||
</Wix>
|
|
@ -23,10 +23,10 @@
|
|||||||
-->
|
-->
|
||||||
<xsl:key
|
<xsl:key
|
||||||
name="FileToRemove"
|
name="FileToRemove"
|
||||||
match="wix:Component[ substring( wix:File/@Source, string-length( wix:File/@Source ) - 6 ) != '.cshtml' ]"
|
match="wix:Component[ substring( wix:File/@Source, string-length( wix:File/@Source ) - 2 ) = '.cs' ]"
|
||||||
use="@Id"
|
use="@Id"
|
||||||
/>
|
/>
|
||||||
<!-- Get the last 4 characters of a string using `substring( s, len(s) - 3 )`, it uses -3 and not -4 because XSLT uses 1-based indexes, not 0-based indexes. -->
|
<!-- Get the last 3 characters of a string using `substring( s, len(s) - 2 )`, it uses -2 and not -3 because XSLT uses 1-based indexes, not 0-based indexes. -->
|
||||||
|
|
||||||
<!-- By default, copy all elements and nodes into the output... -->
|
<!-- By default, copy all elements and nodes into the output... -->
|
||||||
<xsl:template match="@*|node()">
|
<xsl:template match="@*|node()">
|
@ -25,14 +25,13 @@
|
|||||||
</Task>
|
</Task>
|
||||||
</UsingTask>
|
</UsingTask>
|
||||||
<Target Name="CustomBeforeBuild" BeforeTargets="BeforeBuild">
|
<Target Name="CustomBeforeBuild" BeforeTargets="BeforeBuild">
|
||||||
<Exec Command="curl -s -L "https://unpkg.com/pagedjs/dist/paged.polyfill.js" -o "$(TargetDir)paged.polyfill.js"" />
|
|
||||||
<Exec Command="curl -s "http://www.columbia.edu/~em36/PDFtoPrinter.exe" -z "$(TargetDir)PDFtoPrinter.exe" -o "$(TargetDir)PDFtoPrinter.exe"" />
|
<Exec Command="curl -s "http://www.columbia.edu/~em36/PDFtoPrinter.exe" -z "$(TargetDir)PDFtoPrinter.exe" -o "$(TargetDir)PDFtoPrinter.exe"" />
|
||||||
<Exec Command="dotnet publish "$(SolutionDir)Elwig\Elwig.csproj" "/p:PublishProfile=$(SolutionDir)\Elwig\Properties\PublishProfiles\FolderProfile.pubxml"" />
|
<Exec Command="dotnet publish "$(SolutionDir)Elwig\Elwig.csproj" "/p:PublishProfile=$(SolutionDir)\Elwig\Properties\PublishProfiles\FolderProfile.pubxml"" />
|
||||||
<GetFileVersion AssemblyPath="..\Elwig\bin\Publish\Elwig.exe">
|
<GetFileVersion AssemblyPath="..\Elwig\bin\Publish\Elwig.exe">
|
||||||
<Output TaskParameter="Version" PropertyName="ElwigFileVersion" />
|
<Output TaskParameter="Version" PropertyName="ElwigFileVersion" />
|
||||||
</GetFileVersion>
|
</GetFileVersion>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<DefineConstants>ProductVersion=$(ElwigFileVersion);BuildPath=..\Elwig\bin\Publish;DocumentTemplatesPath=..\Elwig\Documents;ElwigProjectDir=..\Elwig</DefineConstants>
|
<DefineConstants>ProductVersion=$(ElwigFileVersion);BuildPath=..\Elwig\bin\Publish;DocumentPath=..\Elwig\Documents;ElwigProjectDir=..\Elwig</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Target>
|
</Target>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -50,13 +49,13 @@
|
|||||||
<ComponentGroupName>DocumentTemplates</ComponentGroupName>
|
<ComponentGroupName>DocumentTemplates</ComponentGroupName>
|
||||||
<DirectoryRefId>ConfigFolderResources</DirectoryRefId>
|
<DirectoryRefId>ConfigFolderResources</DirectoryRefId>
|
||||||
<SuppressRootDirectory>true</SuppressRootDirectory>
|
<SuppressRootDirectory>true</SuppressRootDirectory>
|
||||||
<PreprocessorVariable>DocumentTemplatesPath</PreprocessorVariable>
|
<PreprocessorVariable>DocumentPath</PreprocessorVariable>
|
||||||
<Transforms>DocumentTemplatesTransform.xslt</Transforms>
|
<Transforms>DocumentTransform.xslt</Transforms>
|
||||||
</HarvestDirectory>
|
</HarvestDirectory>
|
||||||
<BindPath BindName="DocumentTemplateBindPath" Include="../Elwig/Documents" />
|
<BindPath BindName="DocumentTemplateBindPath" Include="../Elwig/Documents" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="DocumentTemplatesTransform.xslt" />
|
<None Include="DocumentTransform.xslt" />
|
||||||
<None Include="BuildFilesTransform.xslt" />
|
<None Include="BuildFilesTransform.xslt" />
|
||||||
<None Include="Files\config.ini" />
|
<None Include="Files\config.ini" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
<ComponentGroupRef Id="MainComponents"/>
|
<ComponentGroupRef Id="MainComponents"/>
|
||||||
<ComponentGroupRef Id="BuildFiles"/>
|
<ComponentGroupRef Id="BuildFiles"/>
|
||||||
<ComponentGroupRef Id="DocumentTemplates"/>
|
<ComponentGroupRef Id="DocumentTemplates"/>
|
||||||
<ComponentGroupRef Id="DocumentTemplateComponents"/>
|
|
||||||
</Feature>
|
</Feature>
|
||||||
</Package>
|
</Package>
|
||||||
</Wix>
|
</Wix>
|
||||||
|
Reference in New Issue
Block a user