Skip to content

Commit c8a8b0c

Browse files
committed
Created C# project template.
1 parent 4a079df commit c8a8b0c

14 files changed

+300
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
/.vs
66
/TaskCanvas.TaskCanvasOF
7+
*.TaskCanvasSL

ExcelDNAVSExtension/.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
################################################################################
44

55
.vs
6-
ExcelDNAVSExtension/bin
7-
ExcelDNAVSExtension/obj
6+
[Bb]in/
7+
[Oo]bj/
8+
*.user
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("$projectname$")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("$registeredorganization$")]
12+
[assembly: AssemblyProduct("$projectname$")]
13+
[assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("$guid1$")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<MinimumVisualStudioVersion>16.0</MinimumVisualStudioVersion>
5+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
6+
</PropertyGroup>
7+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
8+
<PropertyGroup>
9+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
10+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
11+
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
12+
<ProjectGuid>{D091468B-6B3E-44B5-B2CC-4038CD754C46}</ProjectGuid>
13+
<OutputType>Library</OutputType>
14+
<AppDesignerFolder>Properties</AppDesignerFolder>
15+
<RootNamespace>CSProjectTemplate</RootNamespace>
16+
<AssemblyName>CSProjectTemplate</AssemblyName>
17+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
18+
<FileAlignment>512</FileAlignment>
19+
<GeneratePkgDefFile>false</GeneratePkgDefFile>
20+
<IncludeAssemblyInVSIXContainer>false</IncludeAssemblyInVSIXContainer>
21+
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
22+
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment>
23+
<CreateVsixContainer>false</CreateVsixContainer>
24+
<DeployExtension>false</DeployExtension>
25+
<DeployVSTemplates>false</DeployVSTemplates>
26+
<CopyVsixManifestToOutput>false</CopyVsixManifestToOutput>
27+
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory>
28+
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>
29+
</PropertyGroup>
30+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
31+
<DebugSymbols>true</DebugSymbols>
32+
<DebugType>full</DebugType>
33+
<Optimize>false</Optimize>
34+
<OutputPath>bin\Debug\</OutputPath>
35+
<DefineConstants>DEBUG;TRACE</DefineConstants>
36+
<ErrorReport>prompt</ErrorReport>
37+
<WarningLevel>4</WarningLevel>
38+
</PropertyGroup>
39+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
40+
<DebugType>pdbonly</DebugType>
41+
<Optimize>true</Optimize>
42+
<OutputPath>bin\Release\</OutputPath>
43+
<DefineConstants>TRACE</DefineConstants>
44+
<ErrorReport>prompt</ErrorReport>
45+
<WarningLevel>4</WarningLevel>
46+
</PropertyGroup>
47+
<ItemGroup>
48+
<Reference Include="Microsoft.VisualStudio.CoreUtility">
49+
<Private>False</Private>
50+
</Reference>
51+
<Reference Include="System" />
52+
<Reference Include="System.Core" />
53+
<Reference Include="System.Data" />
54+
<Reference Include="System.Xml" />
55+
</ItemGroup>
56+
<ItemGroup>
57+
<Compile Include="Properties\AssemblyInfo.cs" />
58+
</ItemGroup>
59+
<ItemGroup>
60+
<None Include="AssemblyInfo.cs" />
61+
<None Include="MyFunctions.cs" />
62+
<None Include="ProjectTemplate.csproj" />
63+
<None Include="CSProjectTemplate.ico" />
64+
</ItemGroup>
65+
<ItemGroup>
66+
<VSTemplate Include="CSProjectTemplate.vstemplate" />
67+
</ItemGroup>
68+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
69+
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
70+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
71+
Other similar extension points exist, see Microsoft.Common.targets.
72+
<Target Name="BeforeBuild">
73+
</Target>
74+
<Target Name="AfterBuild">
75+
</Target>
76+
-->
77+
</Project>
43 KB
Binary file not shown.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<VSTemplate Version="3.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010">
3+
<TemplateData>
4+
<Name>Excel-DNA add-in</Name>
5+
<Description>Excel-DNA add-in</Description>
6+
<Icon>CSProjectTemplate.ico</Icon>
7+
<ProjectType>CSharp</ProjectType>
8+
<LanguageTag>csharp</LanguageTag>
9+
<RequiredFrameworkVersion>2.0</RequiredFrameworkVersion>
10+
<SortOrder>1000</SortOrder>
11+
<TemplateID>13af5aa3-8a0f-4fe4-bfaf-4779e77e85b0</TemplateID>
12+
<CreateNewFolder>true</CreateNewFolder>
13+
<DefaultName>ExcelAddin</DefaultName>
14+
<ProvideDefaultName>true</ProvideDefaultName>
15+
</TemplateData>
16+
<TemplateContent>
17+
<Project File="ProjectTemplate.csproj" ReplaceParameters="true">
18+
<ProjectItem ReplaceParameters="true" TargetFileName="Properties\AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
19+
<ProjectItem ReplaceParameters="true" OpenInEditor="true">MyFunctions.cs</ProjectItem>
20+
</Project>
21+
</TemplateContent>
22+
<WizardExtension>
23+
<Assembly>NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
24+
<FullClassName>NuGet.VisualStudio.TemplateWizard</FullClassName>
25+
</WizardExtension>
26+
<WizardData>
27+
<packages repository="extension" repositoryId="f1b3b55f-9bdc-4e9a-802c-84b329e36587">
28+
<package id="ExcelDna.Integration" version="1.1.0" />
29+
<package id="ExcelDna.AddIn" version="1.1.1" />
30+
</packages>
31+
</WizardData>
32+
</VSTemplate>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using ExcelDna.Integration;
2+
3+
namespace $safeprojectname$
4+
{
5+
public static class MyFunctions
6+
{
7+
[ExcelFunction(Description = "My first .NET function")]
8+
public static string SayHello(string name)
9+
{
10+
return "Hello " + name;
11+
}
12+
}
13+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>$guid1$</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>$safeprojectname$</RootNamespace>
12+
<AssemblyName>$safeprojectname$</AssemblyName>
13+
<TargetFrameworkVersion>v$targetframeworkversion$</TargetFrameworkVersion>
14+
<FileAlignment>512</FileAlignment>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<DebugType>pdbonly</DebugType>
27+
<Optimize>true</Optimize>
28+
<OutputPath>bin\Release\</OutputPath>
29+
<DefineConstants>TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<ItemGroup>
34+
<Reference Include="System"/>
35+
$if$ ($targetframeworkversion$ >= 3.5)
36+
<Reference Include="System.Core"/>
37+
<Reference Include="System.Xml.Linq"/>
38+
<Reference Include="System.Data.DataSetExtensions"/>
39+
$endif$
40+
$if$ ($targetframeworkversion$ >= 4.0)
41+
<Reference Include="Microsoft.CSharp"/>
42+
$endif$
43+
<Reference Include="System.Data"/>
44+
<Reference Include="System.Xml"/>
45+
</ItemGroup>
46+
<ItemGroup>
47+
<Compile Include="MyFunctions.cs" />
48+
49+
<Compile Include="Properties\AssemblyInfo.cs" />
50+
</ItemGroup>
51+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
52+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
53+
Other similar extension points exist, see Microsoft.Common.targets.
54+
<Target Name="BeforeBuild">
55+
</Target>
56+
<Target Name="AfterBuild">
57+
</Target>
58+
-->
59+
60+
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("CSProjectTemplate")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("Company")]
12+
[assembly: AssemblyProduct("CSProjectTemplate")]
13+
[assembly: AssemblyCopyright("Copyright © Company 2020")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("d091468b-6b3e-44b5-b2cc-4038cd754c46")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

ExcelDNAVSExtension/ExcelDNAVSExtension.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.30330.147
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExcelDNAVSExtension", "ExcelDNAVSExtension\ExcelDNAVSExtension.csproj", "{BF7D703B-F324-4BBC-A574-C47F6E8EFA9F}"
77
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSProjectTemplate", "CSProjectTemplate\CSProjectTemplate.csproj", "{D091468B-6B3E-44B5-B2CC-4038CD754C46}"
9+
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1012
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,10 @@ Global
1517
{BF7D703B-F324-4BBC-A574-C47F6E8EFA9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
1618
{BF7D703B-F324-4BBC-A574-C47F6E8EFA9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
1719
{BF7D703B-F324-4BBC-A574-C47F6E8EFA9F}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{D091468B-6B3E-44B5-B2CC-4038CD754C46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{D091468B-6B3E-44B5-B2CC-4038CD754C46}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{D091468B-6B3E-44B5-B2CC-4038CD754C46}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{D091468B-6B3E-44B5-B2CC-4038CD754C46}.Release|Any CPU.Build.0 = Release|Any CPU
1824
EndGlobalSection
1925
GlobalSection(SolutionProperties) = preSolution
2026
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)