added tt4
This commit is contained in:
parent
fcc87e80e1
commit
c1c47af913
3 changed files with 67 additions and 27 deletions
|
@ -44,9 +44,13 @@
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>AssemblyInfo.tt</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="ViesEntityModel.cs" />
|
<Compile Include="ViesEntityModel.cs" />
|
||||||
<Compile Include="ViesHttpRequest.cs" />
|
<Compile Include="ViesHttpRequest.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="ViesQuery.cs" />
|
<Compile Include="ViesQuery.cs" />
|
||||||
<Compile Include="ViesQueryValidator.cs" />
|
<Compile Include="ViesQueryValidator.cs" />
|
||||||
<Compile Include="ViesResponseView.cs" />
|
<Compile Include="ViesResponseView.cs" />
|
||||||
|
@ -59,6 +63,10 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include=".gitignore" />
|
<Content Include=".gitignore" />
|
||||||
|
<Content Include="Properties\AssemblyInfo.tt">
|
||||||
|
<Generator>TextTemplatingFileGenerator</Generator>
|
||||||
|
<LastGenOutput>AssemblyInfo.cs</LastGenOutput>
|
||||||
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\fcs-common\FCS.Lib.Common.csproj">
|
<ProjectReference Include="..\fcs-common\FCS.Lib.Common.csproj">
|
||||||
|
@ -67,5 +75,11 @@
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup />
|
||||||
|
<ItemGroup>
|
||||||
|
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<PreBuildEvent>"C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\TextTransform.exe" -out "$(ProjectDir)Properties\AssemblyInfo.cs" "$(ProjectDir)Properties\AssemblyInfo.tt"</PreBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -1,35 +1,20 @@
|
||||||
using System.Reflection;
|
// This code was generated by a tool. Any changes made manually will be lost
|
||||||
|
// the next time this code is regenerated.
|
||||||
|
|
||||||
|
using System.Reflection;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
|
||||||
// set of attributes. Change these attribute values to modify the information
|
|
||||||
// associated with an assembly.
|
|
||||||
[assembly: AssemblyTitle("FCS.Lib.Vies")]
|
[assembly: AssemblyTitle("FCS.Lib.Vies")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("FCS.Lib.Vies")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("FCS")]
|
||||||
[assembly: AssemblyProduct("FCS.Lib.Vies")]
|
[assembly: AssemblyProduct("FCS.Lib.Vies")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
[assembly: AssemblyCopyright("AGPL-3.0-or-later Copyright © FCS 2015-2022")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("© FCS")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
|
||||||
// to COM components. If you need to access a type in this assembly from
|
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
[assembly: Guid("8D850197-78DB-4D16-A91F-E5BB6E8880A7")]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
[assembly: AssemblyVersion("1.0.1.0")]
|
||||||
[assembly: Guid("309c3658-306a-4497-a4e7-f86d5ad860d7")]
|
[assembly: AssemblyFileVersion("1.0.1.0")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
|
||||||
//
|
|
||||||
// Major Version
|
|
||||||
// Minor Version
|
|
||||||
// Build Number
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
|
||||||
// by using the '*' as shown below:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.100")]
|
|
41
Properties/AssemblyInfo.tt
Normal file
41
Properties/AssemblyInfo.tt
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<#@ template debug="true" hostspecific="false" language="C#" #>
|
||||||
|
<#@ output extension=".cs" #>
|
||||||
|
<#
|
||||||
|
int major = 1;
|
||||||
|
int minor = 0; // Official == even, Preview == odd
|
||||||
|
int build = 1;
|
||||||
|
int revision = 0;
|
||||||
|
|
||||||
|
string version = String.Format("{0}.{1}.{2}.{3}", major, minor, build, revision);
|
||||||
|
|
||||||
|
if (minor % 2 == 1) // Preview build
|
||||||
|
{
|
||||||
|
// Auto-generate the build and revision
|
||||||
|
|
||||||
|
DateTime buildTime = DateTime.Now;
|
||||||
|
|
||||||
|
build = (1000 * (buildTime.Year % 100)) + buildTime.DayOfYear;
|
||||||
|
revision = (100 * buildTime.Hour) + buildTime.Minute;
|
||||||
|
version = String.Format("{0}.{1}.{2:00000}.{3:0000}", major, minor, build, revision);
|
||||||
|
}
|
||||||
|
#>
|
||||||
|
// This code was generated by a tool. Any changes made manually will be lost
|
||||||
|
// the next time this code is regenerated.
|
||||||
|
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
[assembly: AssemblyTitle("FCS.Lib.Vies")]
|
||||||
|
[assembly: AssemblyDescription("FCS.Lib.Vies")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("FCS")]
|
||||||
|
[assembly: AssemblyProduct("FCS.Lib.Vies")]
|
||||||
|
[assembly: AssemblyCopyright("AGPL-3.0-or-later Copyright © FCS 2015-2022")]
|
||||||
|
[assembly: AssemblyTrademark("© FCS")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
[assembly: Guid("8D850197-78DB-4D16-A91F-E5BB6E8880A7")]
|
||||||
|
|
||||||
|
[assembly: AssemblyVersion("<#= version #>")]
|
||||||
|
[assembly: AssemblyFileVersion("<#= version #>")]
|
Loading…
Reference in a new issue