Skip to content

Commit

Permalink
version for Revit 2016
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Aug 21, 2015
1 parent c63a53a commit 59d8d79
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 34 deletions.
12 changes: 6 additions & 6 deletions cs/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// 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("Revit Add-In Title")]
[assembly: AssemblyDescription( "Revit Add-In Description" )]
[assembly: AssemblyTitle("$projectname$")]
[assembly: AssemblyDescription( "Revit Add-In Description for $projectname$" )]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Autodesk Inc.")]
[assembly: AssemblyProduct( "Revit Add-In Wizard Template Application" )]
[assembly: AssemblyCopyright( "Copyright 2014 © Jeremy Tammik Autodesk Inc." )]
[assembly: AssemblyProduct( "$projectname$ Revit Add-In" )]
[assembly: AssemblyCopyright( "Copyright 2015 © Jeremy Tammik Autodesk Inc." )]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// 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.0")]
[assembly: AssemblyVersion("2016.0.0.0")]
[assembly: AssemblyFileVersion("2016.0.0.0")]
18 changes: 9 additions & 9 deletions cs/TemplateRevitCs.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
Expand Down Expand Up @@ -27,7 +27,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2015\Revit.exe</StartProgram>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2016\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
Expand All @@ -38,16 +38,16 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2015\Revit.exe</StartProgram>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2016\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="RevitAPI">
<HintPath>$(ProgramW6432)\Autodesk\Revit 2015\RevitAPI.dll</HintPath>
<HintPath>$(ProgramW6432)\Autodesk\Revit 2016\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>$(ProgramW6432)\Autodesk\Revit 2015\RevitAPIUI.dll</HintPath>
<HintPath>$(ProgramW6432)\Autodesk\Revit 2016\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand All @@ -62,11 +62,11 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="AfterClean">
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2015\$projectname$.addin" />
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2015\$projectname$.dll" />
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2016\$projectname$.addin" />
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2016\$projectname$.dll" />
</Target>
<PropertyGroup>
<PostBuildEvent>copy "$(ProjectDir)$projectname$.addin" "$(AppData)\Autodesk\REVIT\Addins\2015"
copy "$(ProjectDir)bin\debug\$projectname$.dll" "$(AppData)\Autodesk\REVIT\Addins\2015"</PostBuildEvent>
<PostBuildEvent>copy "$(ProjectDir)$projectname$.addin" "$(AppData)\Autodesk\REVIT\Addins\2016"
copy "$(ProjectDir)bin\debug\$projectname$.dll" "$(AppData)\Autodesk\REVIT\Addins\2016"</PostBuildEvent>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions cs/TemplateRevitCs.vstemplate
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<VSTemplate Type="Project" Version="2.0.0"
xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>Revit 2015 Addin</Name>
<Description>Class library template for a Revit 2015 C# add-in project</Description>
<Name>Revit 2016 Addin</Name>
<Description>Class library template for a Revit 2016 C# add-in project</Description>
<Icon>TemplateIcon.ico</Icon>
<ProjectType>CSharp</ProjectType>
<CreateNewFolder>true</CreateNewFolder>
Expand Down
5 changes: 5 additions & 0 deletions vb/AdskCommand.vb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Public Class AdskCommand

'TODO: Add your code here

Using tx As New Transaction(doc)
tx.Start("$projectname$")
tx.Commit()
End Using

'Must return some code
Return Result.Succeeded
End Function
Expand Down
12 changes: 6 additions & 6 deletions vb/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Imports System.Runtime.InteropServices

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("RevitAddinTemplateVb")>
<Assembly: AssemblyDescription("Revit Visual Basic Add-in Template")>
<Assembly: AssemblyTitle("$projectname$")>
<Assembly: AssemblyDescription("Revit Visual Basic Add-in Description for $projectname$")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("RevitAddinTemplateVb")>
<Assembly: AssemblyCopyright("Copyright © 2014 by Jeremy Tammik, Autodesk Inc.")>
<Assembly: AssemblyProduct("$projectname$ Revit Add-in")>
<Assembly: AssemblyCopyright("Copyright © 2015 by Jeremy Tammik, Autodesk Inc.")>
<Assembly: AssemblyTrademark("")>

<Assembly: ComVisible(False)>
Expand All @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyFileVersion("1.0.*")>
<Assembly: AssemblyVersion("2016.0.*")>
<Assembly: AssemblyFileVersion("2016.0.*")>
18 changes: 9 additions & 9 deletions vb/TemplateRevitVb.vbproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
Expand Down Expand Up @@ -32,7 +32,7 @@
<NoWarn>
</NoWarn>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2015\Revit.exe</StartProgram>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2016\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
<WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
</PropertyGroup>
Expand All @@ -46,17 +46,17 @@
<NoWarn>
</NoWarn>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2015\Revit.exe</StartProgram>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2016\Revit.exe</StartProgram>
<Prefer32Bit>false</Prefer32Bit>
<WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference Include="RevitAPI">
<HintPath>$(ProgramW6432)\Autodesk\Revit 2015\RevitAPI.dll</HintPath>
<HintPath>$(ProgramW6432)\Autodesk\Revit 2016\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>$(ProgramW6432)\Autodesk\Revit 2015\RevitAPIUI.dll</HintPath>
<HintPath>$(ProgramW6432)\Autodesk\Revit 2016\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand Down Expand Up @@ -84,12 +84,12 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<Target Name="AfterClean">
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2015\$projectname$.addin" />
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2015\$projectname$.dll" />
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2016\$projectname$.addin" />
<Delete Files="$(AppData)\Autodesk\REVIT\Addins\2016\$projectname$.dll" />
</Target>
<PropertyGroup>
<PostBuildEvent>copy "$(ProjectDir)$projectname$.addin" "$(AppData)\Autodesk\REVIT\Addins\2015"
copy "$(ProjectDir)bin\debug\$projectname$.dll" "$(AppData)\Autodesk\REVIT\Addins\2015"
<PostBuildEvent>copy "$(ProjectDir)$projectname$.addin" "$(AppData)\Autodesk\REVIT\Addins\2016"
copy "$(ProjectDir)bin\debug\$projectname$.dll" "$(AppData)\Autodesk\REVIT\Addins\2016"
</PostBuildEvent>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions vb/TemplateRevitVb.vstemplate
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<VSTemplate Type="Project" Version="2.0.0"
xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>Revit 2015 Addin</Name>
<Description>Class library template for a Revit 2015 Visual Basic add-in project</Description>
<Name>Revit 2016 Addin</Name>
<Description>Class library template for a Revit 2016 Visual Basic add-in project</Description>
<Icon>TemplateIcon.ico</Icon>
<ProjectType>VisualBasic</ProjectType>
<CreateNewFolder>true</CreateNewFolder>
Expand Down

0 comments on commit 59d8d79

Please sign in to comment.