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
|
||||
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"
|
||||
/>
|
||||
<!-- 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... -->
|
||||
<xsl:template match="@*|node()">
|
@ -25,14 +25,13 @@
|
||||
</Task>
|
||||
</UsingTask>
|
||||
<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="dotnet publish "$(SolutionDir)Elwig\Elwig.csproj" "/p:PublishProfile=$(SolutionDir)\Elwig\Properties\PublishProfiles\FolderProfile.pubxml"" />
|
||||
<GetFileVersion AssemblyPath="..\Elwig\bin\Publish\Elwig.exe">
|
||||
<Output TaskParameter="Version" PropertyName="ElwigFileVersion" />
|
||||
</GetFileVersion>
|
||||
<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>
|
||||
</Target>
|
||||
<ItemGroup>
|
||||
@ -50,13 +49,13 @@
|
||||
<ComponentGroupName>DocumentTemplates</ComponentGroupName>
|
||||
<DirectoryRefId>ConfigFolderResources</DirectoryRefId>
|
||||
<SuppressRootDirectory>true</SuppressRootDirectory>
|
||||
<PreprocessorVariable>DocumentTemplatesPath</PreprocessorVariable>
|
||||
<Transforms>DocumentTemplatesTransform.xslt</Transforms>
|
||||
<PreprocessorVariable>DocumentPath</PreprocessorVariable>
|
||||
<Transforms>DocumentTransform.xslt</Transforms>
|
||||
</HarvestDirectory>
|
||||
<BindPath BindName="DocumentTemplateBindPath" Include="../Elwig/Documents" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="DocumentTemplatesTransform.xslt" />
|
||||
<None Include="DocumentTransform.xslt" />
|
||||
<None Include="BuildFilesTransform.xslt" />
|
||||
<None Include="Files\config.ini" />
|
||||
</ItemGroup>
|
||||
|
@ -11,7 +11,6 @@
|
||||
<ComponentGroupRef Id="MainComponents"/>
|
||||
<ComponentGroupRef Id="BuildFiles"/>
|
||||
<ComponentGroupRef Id="DocumentTemplates"/>
|
||||
<ComponentGroupRef Id="DocumentTemplateComponents"/>
|
||||
</Feature>
|
||||
</Package>
|
||||
</Wix>
|
||||
|
Reference in New Issue
Block a user