diff --git a/RevitAddin.sln b/RevitAddin.sln index 342cf29..8ef2e0c 100644 --- a/RevitAddin.sln +++ b/RevitAddin.sln @@ -1,14 +1,13 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.28803.352 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32616.157 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3F33163D-0074-4DF6-B12F-3A587CEC4781}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig .gitattributes = .gitattributes .gitignore = .gitignore - src\__TemplateIcon.ico = src\__TemplateIcon.ico appveyor.yml = appveyor.yml build.ps1 = build.ps1 CodeAnalyzers.targets = CodeAnalyzers.targets @@ -20,19 +19,17 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution src\RevitAddin.vstemplate = src\RevitAddin.vstemplate stylecop.json = stylecop.json stylecop.ruleset = stylecop.ruleset + src\__TemplateIcon.ico = src\__TemplateIcon.ico EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RevitAddin", "src\RevitAddin.csproj", "{286410B8-6185-4DFE-AEEC-8680398938CA}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug One|x64 = Debug One|x64 Debug|x64 = Debug|x64 Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {286410B8-6185-4DFE-AEEC-8680398938CA}.Debug One|x64.ActiveCfg = Debug One|x64 - {286410B8-6185-4DFE-AEEC-8680398938CA}.Debug One|x64.Build.0 = Debug One|x64 {286410B8-6185-4DFE-AEEC-8680398938CA}.Debug|x64.ActiveCfg = Debug|x64 {286410B8-6185-4DFE-AEEC-8680398938CA}.Debug|x64.Build.0 = Debug|x64 {286410B8-6185-4DFE-AEEC-8680398938CA}.Release|x64.ActiveCfg = Release|x64 diff --git a/src/App.cs b/src/App.cs index 4372cc2..ddfdb8b 100644 --- a/src/App.cs +++ b/src/App.cs @@ -59,6 +59,10 @@ public Result OnStartup(UIControlledApplication application) .FirstOrDefault(c => language.Contains(c.EnglishName)) ?? Thread.CurrentThread.CurrentUICulture; #endif +#if REVIT2023 + ParameterType.Angle.ToString(); +#endif + InitializeRibbon(); try diff --git a/src/Properties/launchSettings.json b/src/Properties/launchSettings.json index e667ffc..8760d53 100644 --- a/src/Properties/launchSettings.json +++ b/src/Properties/launchSettings.json @@ -1,5 +1,11 @@ { "profiles": { + "Revit 2023": { + "commandName": "Executable", + "executablePath": "%ProgramW6432%\\Autodesk\\Revit 2023\\Revit.exe", + "commandLineArgs": "", + "use64Bit": true + }, "Revit 2022": { "commandName": "Executable", "executablePath": "%ProgramW6432%\\Autodesk\\Revit 2022\\Revit.exe", diff --git a/src/RevitAddin.csproj b/src/RevitAddin.csproj index 14d107b..5f80d70 100644 --- a/src/RevitAddin.csproj +++ b/src/RevitAddin.csproj @@ -1,23 +1,8 @@ - preview - - false - true - false - - Debug;Release;Debug One - - - x64 - x64 - - - - true - true - en + latest + Debug;Release @@ -32,21 +17,31 @@ 2019 | net47 2020 | net471 2021 | net48 - 2022 | net48 ? + 2022 | net48 + 2023 | net48 For example you can exclude Revit 2014, by simply removing net40 target belows --> net48;net471;net47;net46;net452;net451;net45;net40 - win - + - net48 + net482 + + + + v4.8 + .NETFrameWork,Version=v4.8 + + + + net48 + false @@ -73,6 +68,39 @@ 2021 + + 2022 + + + 2023 + + + + + x64 + x64 + x64 + + + true + true + en + + + + + false + true + false + false + PackageReference + + + + true + true + en + None @@ -94,13 +122,14 @@ false - ..\bin\$(Configuration)\$(RevitVersion) + false + $(SolutionDir)\bin\$(Configuration)\$(RevitVersion) $(DefineConstants);DEBUG full - ..\bin\Debug\$(RevitVersion) + $(SolutionDir)\bin\Debug\$(RevitVersion) @@ -113,6 +142,7 @@ + @@ -218,9 +248,12 @@ - - + + + + + diff --git a/src/RevitAddin.vstemplate b/src/RevitAddin.vstemplate index 59e4cbe..295039f 100644 --- a/src/RevitAddin.vstemplate +++ b/src/RevitAddin.vstemplate @@ -1,7 +1,7 @@ - Revit 2014-2022 C# Addin - Class library template for a Revit 2014-2022 C# .NET add-in project + Revit 2014-2023 C# Addin + Class library template for a Revit 2014-2023 C# .NET add-in project CSharp