Skip to content

Commit 28c785a

Browse files
committed
Created VB project template.
1 parent c8a8b0c commit 28c785a

17 files changed

+717
-19
lines changed

ExcelDNAVSExtension/ExcelDNAVSExtension.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExcelDNAVSExtension", "Exce
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSProjectTemplate", "CSProjectTemplate\CSProjectTemplate.csproj", "{D091468B-6B3E-44B5-B2CC-4038CD754C46}"
99
EndProject
10+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VBProjectTemplate", "VBProjectTemplate\VBProjectTemplate.vbproj", "{ED4B53F2-48F6-4B3D-A5E5-226D5B3C2E7D}"
11+
EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1214
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
2123
{D091468B-6B3E-44B5-B2CC-4038CD754C46}.Debug|Any CPU.Build.0 = Debug|Any CPU
2224
{D091468B-6B3E-44B5-B2CC-4038CD754C46}.Release|Any CPU.ActiveCfg = Release|Any CPU
2325
{D091468B-6B3E-44B5-B2CC-4038CD754C46}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{ED4B53F2-48F6-4B3D-A5E5-226D5B3C2E7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{ED4B53F2-48F6-4B3D-A5E5-226D5B3C2E7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{ED4B53F2-48F6-4B3D-A5E5-226D5B3C2E7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{ED4B53F2-48F6-4B3D-A5E5-226D5B3C2E7D}.Release|Any CPU.Build.0 = Release|Any CPU
2430
EndGlobalSection
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE

ExcelDNAVSExtension/ExcelDNAVSExtension/ExcelDNAVSExtension.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@
7171
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
7272
<IncludeOutputGroupsInVSIX>TemplateProjectOutputGroup%3b</IncludeOutputGroupsInVSIX>
7373
</ProjectReference>
74+
<ProjectReference Include="..\VBProjectTemplate\VBProjectTemplate.vbproj">
75+
<Project>{ED4B53F2-48F6-4B3D-A5E5-226D5B3C2E7D}</Project>
76+
<Name>VBProjectTemplate</Name>
77+
<VSIXSubPath>ProjectTemplates</VSIXSubPath>
78+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
79+
<IncludeOutputGroupsInVSIX>TemplateProjectOutputGroup%3b</IncludeOutputGroupsInVSIX>
80+
</ProjectReference>
7481
</ItemGroup>
7582
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7683
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
3-
<Metadata>
4-
<Identity Id="f1b3b55f-9bdc-4e9a-802c-84b329e36587" Version="1.0" Language="en-US" Publisher="Govert van Drimmelen" />
5-
<DisplayName>Excel-DNA Developer Tools</DisplayName>
6-
<Description xml:space="preserve">The Visual Studio extension for Excel-DNA.</Description>
7-
</Metadata>
8-
<Installation>
9-
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[16.0, 17.0)" />
10-
</Installation>
11-
<Dependencies>
12-
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
13-
</Dependencies>
14-
<Assets>
15-
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="Project" d:ProjectName="CSProjectTemplate" d:TargetPath="|CSProjectTemplate;TemplateProjectOutputGroup|" Path="ProjectTemplates" d:VsixSubPath="ProjectTemplates" />
16-
<Asset Type="nupkg" d:Source="File" Path="Packages\exceldna.addin.1.1.1.nupkg" d:VsixSubPath="Packages" />
17-
<Asset Type="nupkg" d:Source="File" Path="Packages\exceldna.integration.1.1.0.nupkg" d:VsixSubPath="Packages" />
18-
</Assets>
19-
<Prerequisites>
20-
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[16.0,17.0)" DisplayName="Visual Studio core editor" />
21-
</Prerequisites>
3+
<Metadata>
4+
<Identity Id="f1b3b55f-9bdc-4e9a-802c-84b329e36587" Version="1.0" Language="en-US" Publisher="Govert van Drimmelen" />
5+
<DisplayName>Excel-DNA Developer Tools</DisplayName>
6+
<Description xml:space="preserve">The Visual Studio extension for Excel-DNA.</Description>
7+
</Metadata>
8+
<Installation>
9+
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[16.0, 17.0)" />
10+
</Installation>
11+
<Dependencies>
12+
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
13+
</Dependencies>
14+
<Assets>
15+
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="Project" d:ProjectName="CSProjectTemplate" d:TargetPath="|CSProjectTemplate;TemplateProjectOutputGroup|" Path="ProjectTemplates" d:VsixSubPath="ProjectTemplates" />
16+
<Asset Type="nupkg" d:Source="File" Path="Packages\exceldna.addin.1.1.1.nupkg" d:VsixSubPath="Packages" />
17+
<Asset Type="nupkg" d:Source="File" Path="Packages\exceldna.integration.1.1.0.nupkg" d:VsixSubPath="Packages" />
18+
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" d:Source="Project" d:ProjectName="VBProjectTemplate" d:TargetPath="|VBProjectTemplate;TemplateProjectOutputGroup|" Path="ProjectTemplates" d:VsixSubPath="ProjectTemplates" />
19+
</Assets>
20+
<Prerequisites>
21+
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[16.0,17.0)" DisplayName="Visual Studio core editor" />
22+
</Prerequisites>
2223
</PackageManifest>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Imports System
2+
Imports System.Reflection
3+
Imports 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+
9+
' Review the values of the assembly attributes
10+
11+
<Assembly: AssemblyTitle("$projectname$")>
12+
<Assembly: AssemblyDescription("")>
13+
<Assembly: AssemblyCompany("$registeredorganization$")>
14+
<Assembly: AssemblyProduct("$projectname$")>
15+
<Assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")>
16+
<Assembly: AssemblyTrademark("")>
17+
18+
<Assembly: ComVisible(False)>
19+
20+
'The following GUID is for the ID of the typelib if this project is exposed to COM
21+
<Assembly: Guid("$guid1$")>
22+
23+
' Version information for an assembly consists of the following four values:
24+
'
25+
' Major Version
26+
' Minor Version
27+
' Build Number
28+
' Revision
29+
'
30+
' You can specify all the values or you can default the Build and Revision Numbers
31+
' by using the '*' as shown below:
32+
' <Assembly: AssemblyVersion("1.0.*")>
33+
34+
<Assembly: AssemblyVersion("1.0.0.0")>
35+
<Assembly: AssemblyFileVersion("1.0.0.0")>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Imports System
2+
Imports System.Reflection
3+
Imports 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+
9+
' Review the values of the assembly attributes
10+
11+
<Assembly: AssemblyTitle("VBProjectTemplate")>
12+
<Assembly: AssemblyDescription("")>
13+
<Assembly: AssemblyCompany("Company")>
14+
<Assembly: AssemblyProduct("VBProjectTemplate")>
15+
<Assembly: AssemblyCopyright("Copyright © Company 2020")>
16+
<Assembly: AssemblyTrademark("")>
17+
18+
<Assembly: ComVisible(False)>
19+
20+
'The following GUID is for the ID of the typelib if this project is exposed to COM
21+
<Assembly: Guid("ed4b53f2-48f6-4b3d-a5e5-226d5b3c2e7d")>
22+
23+
' Version information for an assembly consists of the following four values:
24+
'
25+
' Major Version
26+
' Minor Version
27+
' Build Number
28+
' Revision
29+
'
30+
' You can specify all the values or you can default the Build and Revision Numbers
31+
' by using the '*' as shown below:
32+
' <Assembly: AssemblyVersion("1.0.*")>
33+
34+
<Assembly: AssemblyVersion("1.0.0.0")>
35+
<Assembly: AssemblyFileVersion("1.0.0.0")>

ExcelDNAVSExtension/VBProjectTemplate/MyApplication.Designer.vb

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<MySubMain>false</MySubMain>
4+
<SingleInstance>false</SingleInstance>
5+
<ShutdownMode>0</ShutdownMode>
6+
<EnableVisualStyles>true</EnableVisualStyles>
7+
<AuthenticationMode>0</AuthenticationMode>
8+
<ApplicationType>1</ApplicationType>
9+
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
10+
</MyApplicationData>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Imports ExcelDna.Integration
2+
3+
Public Module MyFunctions
4+
<ExcelFunction(Description:="My first .NET function")>
5+
Public Function SayHello(ByVal name As String) As String
6+
SayHello = "Hello " + name
7+
End Function
8+
End Module
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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>
7+
</ProductVersion>
8+
<SchemaVersion>
9+
</SchemaVersion>
10+
<ProjectGuid>{$guid2$}</ProjectGuid>
11+
<OutputType>Library</OutputType>
12+
<RootNamespace>$safeprojectname$</RootNamespace>
13+
<AssemblyName>$safeprojectname$</AssemblyName>
14+
<FileAlignment>512</FileAlignment>
15+
<MyType>Windows</MyType>
16+
<TargetFrameworkVersion>v$targetframeworkversion$</TargetFrameworkVersion>
17+
</PropertyGroup>
18+
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<DefineDebug>true</DefineDebug>
23+
<DefineTrace>true</DefineTrace>
24+
<OutputPath>bin\Debug\</OutputPath>
25+
<DocumentationFile>$safeprojectname$.xml</DocumentationFile>
26+
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
27+
</PropertyGroup>
28+
29+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30+
<DebugType>pdbonly</DebugType>
31+
<DefineDebug>false</DefineDebug>
32+
<DefineTrace>true</DefineTrace>
33+
<Optimize>true</Optimize>
34+
<OutputPath>bin\Release\</OutputPath>
35+
<DocumentationFile>$safeprojectname$.xml</DocumentationFile>
36+
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
37+
</PropertyGroup>
38+
39+
<ItemGroup>
40+
<Reference Include="System" />
41+
<Reference Include="System.Data" />
42+
<Reference Include="System.Xml" />
43+
$if$ ($targetframeworkversion$ >= 3.5)
44+
<Reference Include="System.Core" />
45+
<Reference Include="System.Xml.Linq" />
46+
<Reference Include="System.Data.DataSetExtensions" />
47+
$endif$
48+
</ItemGroup>
49+
50+
<ItemGroup>
51+
<Import Include="Microsoft.VisualBasic" />
52+
<Import Include="System" />
53+
<Import Include="System.Collections" />
54+
<Import Include="System.Collections.Generic" />
55+
<Import Include="System.Data" />
56+
<Import Include="System.Diagnostics" />
57+
$if$ ($targetframeworkversion$ >= 3.5)
58+
<Import Include="System.Linq" />
59+
<Import Include="System.Xml.Linq" />
60+
$endif$
61+
</ItemGroup>
62+
63+
<ItemGroup>
64+
<Compile Include="MyFunctions.vb"/>
65+
<Compile Include="My Project\AssemblyInfo.vb"/>
66+
<Compile Include="My Project\Application.Designer.vb">
67+
<AutoGen>True</AutoGen>
68+
<DependentUpon>Application.myapp</DependentUpon>
69+
</Compile>
70+
<Compile Include="My Project\Resources.Designer.vb">
71+
<AutoGen>True</AutoGen>
72+
<DesignTime>True</DesignTime>
73+
<DependentUpon>Resources.resx</DependentUpon>
74+
</Compile>
75+
<Compile Include="My Project\Settings.Designer.vb">
76+
<AutoGen>True</AutoGen>
77+
<DependentUpon>Settings.settings</DependentUpon>
78+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
79+
</Compile>
80+
</ItemGroup>
81+
82+
<ItemGroup>
83+
<EmbeddedResource Include="My Project\Resources.resx">
84+
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
85+
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
86+
<CustomToolNamespace>My.Resources</CustomToolNamespace>
87+
<SubType>Designer</SubType>
88+
</EmbeddedResource>
89+
</ItemGroup>
90+
91+
<ItemGroup>
92+
<None Include="My Project\Application.myapp">
93+
<Generator>MyApplicationCodeGenerator</Generator>
94+
<LastGenOutput>Application.Designer.vb</LastGenOutput>
95+
</None>
96+
<None Include="My Project\Settings.settings">
97+
<Generator>SettingsSingleFileGenerator</Generator>
98+
<CustomToolNamespace>My</CustomToolNamespace>
99+
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
100+
</None>
101+
</ItemGroup>
102+
103+
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
104+
105+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
106+
Other similar extension points exist, see Microsoft.Common.targets.
107+
<Target Name="BeforeBuild">
108+
</Target>
109+
<Target Name="AfterBuild">
110+
</Target>
111+
-->
112+
113+
</Project>

ExcelDNAVSExtension/VBProjectTemplate/Resources.Designer.vb

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)