Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 28 additions & 43 deletions spark.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<property name="solution.dir" value="src"/>
<property name="solution.file" value="${solution.dir}\Spark.sln"/>
<property name="trunk.dir" value="."/>
<property name="company.name" value="Louis DeJardin"/>
<property name="bin.dir" value="bin" />
<property name="build.base" value="build"/>
<property name="msbuild.dir" value="C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin" />
Expand All @@ -20,6 +19,8 @@
<property name="nant.settings.currentframework" value="net-4.0" />
<property name="ncover.path" value="${bin.dir}\ncover" />

<property name="company.name" value="Louis DeJardin" />
<property name="project.authors" value="RobertTheGrey" />
<property name="project.copyright" value="Copyright (c) ${company.name} 2008-${datetime::get-year(datetime::now())}"/>

<property name="package.dir" value="${build.base}\package" />
Expand All @@ -34,14 +35,8 @@

<property name="dist.revision" value="${datetime::get-year(datetime::now())*10000+datetime::get-month(datetime::now())*100+ datetime::get-day(datetime::now())}"/>

<target name="build" depends="clean, version, init, commonassemblyinfo, compile, test, compile-samples"/>
<target name="cruise" depends="build, package"/>
<target name="cruise-coverage" depends="analyze"/>
<target name="commiter" depends="build, analyze, package"/>

<target name="compile-samples"/>
<target name="analyze"/>

<target name="build" depends="clean, version, init, commonassemblyinfo, compile, test" />

<target name="init" description="Initializes build properties">
<tstamp>
<formatter property="datetime.buildtime" pattern="yyyy-MM-dd, HH:mm:ss" />
Expand Down Expand Up @@ -77,40 +72,30 @@
</target>

<target name="commonassemblyinfo" depends="version, init">
<echo message="MARKING THIS BUILD AS VERSION ${project.fullversion}" />
<delete file="${solution.dir}/CommonAssemblyInfo.cs" failonerror="false"/>
<asminfo output="${solution.dir}/CommonAssemblyInfo.cs" language="CSharp">
<imports>
<import namespace="System" />
<import namespace="System.Reflection" />
<import namespace="System.Runtime.InteropServices" />
</imports>
<attributes>
<attribute type="ComVisibleAttribute" value="false" />
<attribute type="AssemblyVersionAttribute" value="${project.version}" />
<attribute type="AssemblyFileVersionAttribute" value="${project.fullversion}" />
<attribute type="AssemblyCopyrightAttribute" value="${project.copyright}" />
<attribute type="AssemblyProductAttribute" value="${project::get-name()}" />
<attribute type="AssemblyCompanyAttribute" value="${company.name}" />
<attribute type="AssemblyConfigurationAttribute" value="${project.config}" />
<attribute type="AssemblyInformationalVersionAttribute" value="${project.fullversion}" />
</attributes>
<references>
<include name="System.dll" />
</references>
</asminfo>
<delete file="${solution.dir}/CommonVersionInfo.h" failonerror="false"/>
<echo message="// this is an auto-generated file" file="${solution.dir}/CommonVersionInfo.h" />

<echo message='#define VERSIONINFO_VERSIONSTRING "${project.fullversion}"' file="${solution.dir}/CommonVersionInfo.h" append="true" />
<echo message="#define VERSIONINFO_MAJOR ${version.major}" file="${solution.dir}/CommonVersionInfo.h" append="true" />
<echo message="#define VERSIONINFO_MINOR ${version.minor}" file="${solution.dir}/CommonVersionInfo.h" append="true" />
<echo message="#define VERSIONINFO_BUILD ${version.build}" file="${solution.dir}/CommonVersionInfo.h" append="true" />
<echo message="#define VERSIONINFO_REVISION ${version.revision}" file="${solution.dir}/CommonVersionInfo.h" append="true" />

<echo message='#define VERSIONINFO_COPYRIGHT "${project.copyright}"' file="${solution.dir}/CommonVersionInfo.h" append="true" />
<echo message='#define VERSIONINFO_COMPANY "${company.name}"' file="${solution.dir}/CommonVersionInfo.h" append="true" />
<echo message='#define VERSIONINFO_PRODUCT "${project::get-name()}"' file="${solution.dir}/CommonVersionInfo.h" append="true" />
<echo message="UPDATING PACKAGE INFO AND SETTING VERSION TO ${project.fullversion}" />

<foreach item="File" property="filename">
<in>
<items>
<include name="**/*.csproj" />
<!-- No need set the info on unit test projects -->
<exclude name="**Tests**" />
<!-- Ancient code is hiding in the \src folder! -->
<exclude name="*/Tools/**" />
<exclude name="**/Profiling/**" />
<exclude name="**/Samples/**" />

</items>
</in>
<do>
<echo message="Poking ${filename}" />
<xmlpoke file="${filename}" xpath="//Project/PropertyGroup/AssemblyVersion" value="${project.version}" />
<xmlpoke file="${filename}" xpath="//Project/PropertyGroup/FileVersion" value="${project.fullversion}" />
<xmlpoke file="${filename}" xpath="//Project/PropertyGroup/Copyright" value="${project.copyright}" />
<xmlpoke file="${filename}" xpath="//Project/PropertyGroup/Authors" value="${project.authors}" />
<xmlpoke file="${filename}" xpath="//Project/PropertyGroup/Company" value="${company.name}" />
</do>
</foreach>

</target>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net481</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
Expand Down
50 changes: 0 additions & 50 deletions src/Castle.MonoRail.Views.Spark.Tests/Properties/AssemblyInfo.cs

This file was deleted.

36 changes: 26 additions & 10 deletions src/Castle.MonoRail.Views.Spark/Castle.MonoRail.Views.Spark.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<AssemblyOriginatorKeyFile>..\SparkKey.snk</AssemblyOriginatorKeyFile>
<TargetFramework>net481</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<Title>Castle.MonoRail.Views.Spark</Title>
<Authors>RobertTheGrey</Authors>
<Company>Louis DeJardin</Company>
<PackageProjectUrl>https://github.com/SparkViewEngine/</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/SparkViewEngine/spark</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>1.8</AssemblyVersion>
<FileVersion>1.8.1.0</FileVersion>
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageLicenseFile>license.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageTags>spark;view engine</PackageTags>
<Copyright>Copyright (c) Louis DeJardin 2008-2022</Copyright>
<Description>Spark is a view engine allowing the HTML to dominate the flow and any code to fit seamlessly.</Description>
</PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
Expand All @@ -20,9 +34,6 @@
<Reference Include="System.Web" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\CommonAssemblyInfo.cs">
<Link>Properties\CommonAssemblyInfo.cs</Link>
</Compile>
<Compile Update="Install\PrecompileInstaller.cs">
<SubType>Component</SubType>
</Compile>
Expand All @@ -34,11 +45,16 @@
<ProjectReference Include="..\Spark\Spark.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="..\SparkKey.snk">
<Link>SparkKey.snk</Link>
</None>
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<None Include="..\..\license.txt">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
</Project>
52 changes: 0 additions & 52 deletions src/Castle.MonoRail.Views.Spark/Properties/AssemblyInfo.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<TargetFramework>net481</TargetFramework>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
Expand All @@ -24,11 +23,6 @@
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="RhinoMocks" Version="3.6.0" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\CommonAssemblyInfo.cs">
<Link>Properties\CommonAssemblyInfo.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Castle.Monorail.Pdf\Castle.MonoRail.Pdf.csproj" />
</ItemGroup>
Expand Down
13 changes: 0 additions & 13 deletions src/Castle.Monorail.Pdf.Tests/Properties/AssemblyInfo.cs

This file was deleted.

39 changes: 26 additions & 13 deletions src/Castle.Monorail.Pdf/Castle.Monorail.Pdf.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net481</TargetFramework>
<OutputType>Library</OutputType>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\SparkKey.snk</AssemblyOriginatorKeyFile>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<Title>Castle.Monorail.Pdf</Title>
<Authors>RobertTheGrey</Authors>
<Company>Louis DeJardin</Company>
<PackageProjectUrl>https://github.com/SparkViewEngine/</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/SparkViewEngine/spark</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>1.8</AssemblyVersion>
<FileVersion>1.8.1.0</FileVersion>
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageLicenseFile>license.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageTags>spark;view engine</PackageTags>
<Copyright>Copyright (c) Louis DeJardin 2008-2022</Copyright>
<Description>Spark is a view engine allowing the HTML to dominate the flow and any code to fit seamlessly.</Description>
</PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
Expand All @@ -22,19 +35,19 @@
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Spark\Spark.csproj" />
<ProjectReference Include="..\Spark\Spark.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\CommonAssemblyInfo.cs">
<Link>Properties\CommonAssemblyInfo.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="..\SparkKey.snk">
<Link>SparkKey.snk</Link>
<None Include="..\..\license.txt">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
</Project>
13 changes: 0 additions & 13 deletions src/Castle.Monorail.Pdf/Properties/AssemblyInfo.cs

This file was deleted.

Loading