Browse Source

Both WPF templates get their AssemblyInfo from the same source.

Improved DefaultAssemblyInfo.cs.
Made the appropiate additions to the setup files.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2512 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Justin Dearing 19 years ago
parent
commit
e77880dc9f
  1. 30
      data/templates/project/CSharp/CompactFormsProject.xpt
  2. 16
      data/templates/project/CSharp/DefaultAssemblyInfo.cs
  3. 55
      data/templates/project/CSharp/WPFApplication.xpt
  4. 54
      data/templates/project/CSharp/WPFAssemblyInfo.cs
  5. 55
      data/templates/project/CSharp/WPFNavigationApplication.xpt
  6. 5
      src/Setup/Files.wxs
  7. 1
      src/Setup/Setup.wxs

30
data/templates/project/CSharp/CompactFormsProject.xpt

@ -113,35 +113,7 @@ namespace ${StandardNamespace} @@ -113,35 +113,7 @@ namespace ${StandardNamespace}
}
}
]]></File>
<File name="AssemblyInfo.cs" language="C#">
<![CDATA[using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following
// attributes.
//
// change them to the information which is associated with the assembly
// you compile.
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):
[assembly: AssemblyVersion("1.0.*")]
]]></File>
<File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs" language="C#" />
</Files>
</Project>
</Template>

16
data/templates/project/CSharp/DefaultAssemblyInfo.cs

@ -1,13 +1,14 @@ @@ -1,13 +1,14 @@
#region Using directives
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Information about this assembly is defined by the following
// attributes.
//
// change them to the information which is associated with the assembly
// you compile.
#endregion
// 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("${ProjectName}")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
@ -25,7 +26,6 @@ using System.Runtime.InteropServices; @@ -25,7 +26,6 @@ using System.Runtime.InteropServices;
//
// Major.Minor.Build.Revision
//
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]

55
data/templates/project/CSharp/WPFApplication.xpt

@ -111,60 +111,7 @@ namespace ${StandardNamespace} @@ -111,60 +111,7 @@ namespace ${StandardNamespace}
}
}]]></File>
<File name="AssemblyInfo.cs"><![CDATA[#region Using directives
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Resources;
using System.Globalization;
using System.Windows;
using System.Runtime.InteropServices;
#endregion
// 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("${StandardNamespace}")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("${StandardNamespace}")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// 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 Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]]]></File>
<File name="AssemblyInfo.cs" src="WPFAssemblyInfo.cs" />
</Files>
</Project>
</Template>

54
data/templates/project/CSharp/WPFAssemblyInfo.cs

@ -0,0 +1,54 @@ @@ -0,0 +1,54 @@
#region Using directives
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Resources;
using System.Globalization;
using System.Windows;
using System.Runtime.InteropServices;
#endregion
// 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("${ProjectName}")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("${ProjectName}")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]

55
data/templates/project/CSharp/WPFNavigationApplication.xpt

@ -110,60 +110,7 @@ namespace ${StandardNamespace} @@ -110,60 +110,7 @@ namespace ${StandardNamespace}
}
}]]></File>
<File name="AssemblyInfo.cs"><![CDATA[#region Using directives
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Resources;
using System.Globalization;
using System.Windows;
using System.Runtime.InteropServices;
#endregion
// 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("${StandardNamespace}")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("${StandardNamespace}")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// 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 Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]]]></File>
<File name="AssemblyInfo.cs" src="WPFAssemblyInfo.cs" />
</Files>
</Project>
</Template>

5
src/Setup/Files.wxs

@ -807,6 +807,9 @@ @@ -807,6 +807,9 @@
<Component Guid="7D1DCA03-CB13-4516-B232-028F53B096BF" Id="CSharpWebServiceProjectTemplate" DiskId="1">
<File Source="..\..\data\templates\project\CSharp\WebService.xpt" Name="WEBSRVC.XPT" Id="WebService.xpt" LongName="WebService.xpt" />
</Component>
<Component Guid="084FDE9A-C356-4D88-8718-00D53478225A" Id="WPFAssemblyInfoTemplate" DiskId="1">
<File Source="..\..\data\templates\project\CSharp\WPFAssemblyInfo.cs" Name="WPFAsem.cs" Id="WPFAssemblyInfoTemplate" LongName="WPFAssemblyInfo.cs" />
</Component>
</Directory>
<Directory Id="MiscProjectTemplatesFolder" Name="Misc">
<Component Guid="F9A7F832-6EC8-4B15-A037-146BD028C9D5" Id="MiscProjectTemplates" DiskId="1">
@ -1234,4 +1237,4 @@ @@ -1234,4 +1237,4 @@
</Directory>
</DirectoryRef>
</Fragment>
</Wix>
</Wix>

1
src/Setup/Setup.wxs

@ -336,6 +336,7 @@ @@ -336,6 +336,7 @@
<ComponentRef Id="SyntaxModesFiles"/>
<ComponentRef Id="SharpDevelopWebsiteShortcut"/>
<ComponentRef Id="SharpDevelopAppPathRegistrySetting"/>
<ComponentRef Id="WPFAssemblyInfoTemplate"/>
</Feature>
<Feature Id="SharpDevelopFileAssociations"
Level="1"

Loading…
Cancel
Save