Skip to content

Commit db21fd8

Browse files
authored
Merge pull request #6 from EverseDevelopment/develop
Develop
2 parents 73eff1e + c0e127b commit db21fd8

File tree

10 files changed

+219
-11
lines changed

10 files changed

+219
-11
lines changed

.github/workflows/dev_actions.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,20 @@ on:
1414

1515
jobs:
1616
Build:
17-
# The type of runner that the job will run on
1817
runs-on: windows-latest
19-
env:
20-
Solution_Name: SampleRevitAddin.sln
21-
outputs:
22-
Version: ${{ steps.gitversion.outputs.nuGetVersionV2 }}
23-
CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}
24-
2518
steps:
2619
- name: Checkout
2720
uses: actions/checkout@v2
2821
with:
2922
fetch-depth: 0
30-
31-
# install and calculate the new version with GitVersion
23+
24+
# Install .NET Core 3.1 SDK
25+
- name: Install .NET Core 3.1 SDK
26+
run: |
27+
wget https://download.visualstudio.microsoft.com/download/pr/7987e2b2-15c9-4c3d-b9b3-d372fc4d8caa/3fa02be2e8c8712649819e283a2294a7/dotnet-sdk-3.1.416-win-x64.exe
28+
./dotnet-sdk-3.1.416-win-x64.exe /quiet
29+
30+
# Install GitVersion
3231
- name: Install GitVersion
3332
uses: gittools/actions/gitversion/[email protected]
3433
with:
@@ -39,6 +38,7 @@ jobs:
3938
with:
4039
useConfigFile: true
4140
configFilePath: GitVersion.yml
41+
id: gitversion
4242

4343
id: gitversion # step id used as reference for output values
4444
- name: Display GitVersion outputs
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("SampleRevitAddin.2023")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("SampleRevitAddin.2023")]
13+
[assembly: AssemblyCopyright("Copyright © 2022")]
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("963b5ab4-beda-499e-896f-9fb61fdcc96d")]
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: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{0B0D3DA5-18F0-404D-957A-B5EC9219054D}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>SampleRevitAddin._2024</RootNamespace>
11+
<AssemblyName>SampleRevitAddin</AssemblyName>
12+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<Deterministic>true</Deterministic>
15+
<TargetFrameworkProfile />
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<DebugType>pdbonly</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>bin\Release\</OutputPath>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<ItemGroup>
35+
<Reference Include="AdWindows, Version=5.0.3.1, Culture=neutral, processorArchitecture=MSIL">
36+
<HintPath>..\packages\Revit_All_Main_Versions_API_x64.2024.2.0\lib\net48\AdWindows.dll</HintPath>
37+
<SpecificVersion>False</SpecificVersion>
38+
<Private>False</Private>
39+
</Reference>
40+
<Reference Include="PresentationCore" />
41+
<Reference Include="RevitAPI, Version=24.2.0.0, Culture=neutral, processorArchitecture=AMD64">
42+
<HintPath>..\packages\Revit_All_Main_Versions_API_x64.2024.2.0\lib\net48\RevitAPI.dll</HintPath>
43+
<SpecificVersion>False</SpecificVersion>
44+
<Private>False</Private>
45+
</Reference>
46+
<Reference Include="RevitAPIUI, Version=24.2.0.0, Culture=neutral, processorArchitecture=AMD64">
47+
<HintPath>..\packages\Revit_All_Main_Versions_API_x64.2024.2.0\lib\net48\RevitAPIUI.dll</HintPath>
48+
<SpecificVersion>False</SpecificVersion>
49+
<Private>False</Private>
50+
</Reference>
51+
<Reference Include="System" />
52+
<Reference Include="System.Core" />
53+
<Reference Include="System.Xml.Linq" />
54+
<Reference Include="System.Data.DataSetExtensions" />
55+
<Reference Include="Microsoft.CSharp" />
56+
<Reference Include="System.Data" />
57+
<Reference Include="System.Net.Http" />
58+
<Reference Include="System.Xml" />
59+
<Reference Include="UIFramework, Version=24.2.0.0, Culture=neutral, processorArchitecture=AMD64">
60+
<HintPath>..\packages\Revit_All_Main_Versions_API_x64.2024.2.0\lib\net48\UIFramework.dll</HintPath>
61+
<SpecificVersion>False</SpecificVersion>
62+
<Private>False</Private>
63+
</Reference>
64+
<Reference Include="WindowsBase" />
65+
</ItemGroup>
66+
<ItemGroup>
67+
<Compile Include="Properties\AssemblyInfo.cs" />
68+
</ItemGroup>
69+
<ItemGroup>
70+
<None Include="app.config" />
71+
<None Include="packages.config" />
72+
</ItemGroup>
73+
<ItemGroup>
74+
<ProjectReference Include="..\SampleRevitAddin.Resources\SampleRevitAddin.Resources.csproj">
75+
<Project>{87317c2b-af3a-40ad-865c-093fbaa72440}</Project>
76+
<Name>SampleRevitAddin.Resources</Name>
77+
</ProjectReference>
78+
</ItemGroup>
79+
<Import Project="..\SampleRevitAddin.Common\SampleRevitAddin.Common.projitems" Label="Shared" />
80+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
81+
<PropertyGroup>
82+
<PostBuildEvent>if $(ConfigurationName) == Debug copy /Y "$(TargetDir)" "$(AppData)\Autodesk\Revit\Addins\2024\"</PostBuildEvent>
83+
</PropertyGroup>
84+
</Project>

SampleRevitAddin.2024/app.config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
</configSections>
5+
<startup>
6+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
7+
</startup>
8+
<appSettings>
9+
<add key="GetURL" value="https://qa-samplerevitaddin/api/getData" />
10+
<add key="UploadURL" value="https://qa-samplerevitaddin/api/postData" />
11+
</appSettings>
12+
</configuration>

SampleRevitAddin.2024/packages.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Revit_All_Main_Versions_API_x64" version="2024.2.0" targetFramework="net48" />
4+
</packages>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
[assembly: AssemblyTrademark("")]
5+
[assembly: AssemblyCulture("")]
6+
7+
// Setting ComVisible to false makes the types in this assembly not visible
8+
// to COM components. If you need to access a type in this assembly from
9+
// COM, set the ComVisible attribute to true on that type.
10+
[assembly: ComVisible(false)]
11+
12+
// The following GUID is for the ID of the typelib if this project is exposed to COM
13+
[assembly: Guid("963b5ab4-beda-499e-896f-9fb61fdcc96d")]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Library</OutputType>
4+
<TargetFramework>net8.0-windows</TargetFramework>
5+
<UseWindowsForms>true</UseWindowsForms>
6+
<UseWPF>true</UseWPF>
7+
<Nullable>enable</Nullable>
8+
<ImplicitUsings>enable</ImplicitUsings>
9+
<RootNamespace>SampleRevitAddin._2025</RootNamespace>
10+
<AssemblyName>SampleRevitAddin</AssemblyName>
11+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
12+
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
13+
</PropertyGroup>
14+
<ItemGroup>
15+
<ProjectReference Include="..\SampleRevitAddin.Resources\SampleRevitAddin.Resources.csproj" />
16+
</ItemGroup>
17+
<ItemGroup>
18+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
19+
<PackageReference Include="Revit_All_Main_Versions_API_x64" Version="2025.0.0" />
20+
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
21+
</ItemGroup>
22+
<PropertyGroup>
23+
<AssemblyTitle>SampleRevitAddin.2025</AssemblyTitle>
24+
<Product>SampleRevitAddin.2025</Product>
25+
<Copyright>Copyright © 2022</Copyright>
26+
<AssemblyVersion>1.0.0.0</AssemblyVersion>
27+
<FileVersion>1.0.0.0</FileVersion>
28+
</PropertyGroup>
29+
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
30+
<Exec Command="if $(ConfigurationName) == Debug copy /Y &quot;$(TargetDir)&quot; &quot;$(AppData)\Autodesk\Revit\Addins\2025\&quot;" />
31+
</Target>
32+
<Import Project="..\SampleRevitAddin.Common\SampleRevitAddin.Common.projitems" Label="Shared" />
33+
</Project>

SampleRevitAddin.2025/app.config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
</configSections>
5+
<startup>
6+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
7+
</startup>
8+
<appSettings>
9+
<add key="GetURL" value="https://qa-samplerevitaddin/api/getData" />
10+
<add key="UploadURL" value="https://qa-samplerevitaddin/api/postData" />
11+
</appSettings>
12+
</configuration>

SampleRevitAddin.Common/SampleRevitPopup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ public Result Execute(ExternalCommandData commandData, ref string message, Eleme
1313
{
1414
try
1515
{
16-
TaskDialog.Show("e-verse Sample Addin", "Looks like this worked!");
16+
Autodesk.Revit.UI.TaskDialog.Show("e-verse Sample Addin", "Looks like this worked!");
1717
return Result.Succeeded;
1818
}
1919
catch (Exception e)
2020
{
21-
TaskDialog.Show("e-verse Sample Addin", $"Exception found: {e.Message}");
21+
Autodesk.Revit.UI.TaskDialog.Show("e-verse Sample Addin", $"Exception found: {e.Message}");
2222
return Result.Failed;
2323
}
2424
}

SampleRevitAddin.sln

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleRevitAddin.Resources"
2525
EndProject
2626
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3C7DD4D2-E4F4-47CD-88E1-C48C77173C05}"
2727
EndProject
28+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleRevitAddin.2024", "SampleRevitAddin.2024\SampleRevitAddin.2024.csproj", "{0B0D3DA5-18F0-404D-957A-B5EC9219054D}"
29+
EndProject
30+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleRevitAddin.2025", "SampleRevitAddin.2025\SampleRevitAddin.2025.csproj", "{69B4EBC0-B9C5-4317-9BE6-7643C540F155}"
31+
EndProject
2832
Global
2933
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3034
Debug|Any CPU = Debug|Any CPU
@@ -55,6 +59,14 @@ Global
5559
{87317C2B-AF3A-40AD-865C-093FBAA72440}.Debug|Any CPU.Build.0 = Debug|Any CPU
5660
{87317C2B-AF3A-40AD-865C-093FBAA72440}.Release|Any CPU.ActiveCfg = Release|Any CPU
5761
{87317C2B-AF3A-40AD-865C-093FBAA72440}.Release|Any CPU.Build.0 = Release|Any CPU
62+
{0B0D3DA5-18F0-404D-957A-B5EC9219054D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63+
{0B0D3DA5-18F0-404D-957A-B5EC9219054D}.Debug|Any CPU.Build.0 = Debug|Any CPU
64+
{0B0D3DA5-18F0-404D-957A-B5EC9219054D}.Release|Any CPU.ActiveCfg = Release|Any CPU
65+
{0B0D3DA5-18F0-404D-957A-B5EC9219054D}.Release|Any CPU.Build.0 = Release|Any CPU
66+
{69B4EBC0-B9C5-4317-9BE6-7643C540F155}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
67+
{69B4EBC0-B9C5-4317-9BE6-7643C540F155}.Debug|Any CPU.Build.0 = Debug|Any CPU
68+
{69B4EBC0-B9C5-4317-9BE6-7643C540F155}.Release|Any CPU.ActiveCfg = Release|Any CPU
69+
{69B4EBC0-B9C5-4317-9BE6-7643C540F155}.Release|Any CPU.Build.0 = Release|Any CPU
5870
EndGlobalSection
5971
GlobalSection(SolutionProperties) = preSolution
6072
HideSolutionNode = FALSE
@@ -64,6 +76,8 @@ Global
6476
EndGlobalSection
6577
GlobalSection(SharedMSBuildProjectFiles) = preSolution
6678
SampleRevitAddin.Common\SampleRevitAddin.Common.projitems*{07583564-afc9-49d3-b859-21ed8c65344e}*SharedItemsImports = 4
79+
SampleRevitAddin.Common\SampleRevitAddin.Common.projitems*{0b0d3da5-18f0-404d-957a-b5ec9219054d}*SharedItemsImports = 4
80+
SampleRevitAddin.Common\SampleRevitAddin.Common.projitems*{69b4ebc0-b9c5-4317-9be6-7643c540f155}*SharedItemsImports = 5
6781
SampleRevitAddin.Common\SampleRevitAddin.Common.projitems*{8df231c1-4af1-4be2-a713-fc8e97951500}*SharedItemsImports = 4
6882
SampleRevitAddin.Common\SampleRevitAddin.Common.projitems*{963b5ab4-beda-499e-896f-9fb61fdcc96d}*SharedItemsImports = 4
6983
SampleRevitAddin.Common\SampleRevitAddin.Common.projitems*{ac17c4be-a7e7-4135-b970-9c5c133cb875}*SharedItemsImports = 4

0 commit comments

Comments
 (0)