<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trouble setting up Multi-Versioning in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-setting-up-multi-versioning/m-p/10362395#M25647</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/81704"&gt;@David_Robison&lt;/a&gt;&amp;nbsp;I've seemed to have gotten it working for now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To my surprise, it turns out I had the .csproj file set up correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, I ended up having to do a couple of steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. clean all builds and remove any residual files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. write a line in the post-build that copies the newly created .pdb from the bin/debug folder over to the addins folder where the debugger was looking for it. &lt;A href="https://docs.microsoft.com/en-us/visualstudio/debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger?view=vs-2019#BKMK_Specify_symbol_locations_and_loading_behavior" target="_self"&gt;After researching a bit how the debugger checks for .pdb files,&lt;/A&gt;&amp;nbsp;It checks where the .dll is created first apparently, if it can't find that then it ends up finding the one in the obj/bin folder. If it can't find it there then it searches the very very first Debug folder that was originally created when you first ran the build.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason, I wasn't able to set the path using the Tools --&amp;gt; Options --&amp;gt; Debugging --&amp;gt; Symbols --&amp;gt; Set Symbol File Locations as shown in the previous hyperlink.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We'll see how long this lasts. Hopefully, it doesn't break.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to pm me if you give it another try and need help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 21:45:18 GMT</pubDate>
    <dc:creator>Maltezc</dc:creator>
    <dc:date>2021-06-03T21:45:18Z</dc:date>
    <item>
      <title>Trouble setting up Multi-Versioning</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-setting-up-multi-versioning/m-p/10359795#M25645</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi all, I have a plugin that I'm trying to get working on Revit 2022 however I am having issues with assigning the correct .pbd file to the version and debugging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Context:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have Revit 2020, 2021, and 2022 on my computer(mac running Parallels) and Revit 2022 API has deprecated `Autodesk.Revit.DB.UnitType` and is now using `Autodesk.Revit.DB.SpectTypeId` so that means I have to figure this out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on setting up the multi-versioning according to &lt;A href="https://thebuildingcoder.typepad.com/blog/2021/04/pdf-export-forgetypeid-and-multi-target-add-in.html#3" target="_blank" rel="noopener"&gt;Jeremey Tammik's post&lt;/A&gt; and &lt;A href="https://forums.autodesk.com/t5/revit-api-forum/forgetypeid-how-to-use/m-p/10357492#M56235" target="_blank" rel="noopener"&gt;this thread here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set up my .csproj so that it tries to run the references based upon what version of Revit is running as opposed to what .net framework version is running although I am not sure if this is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be a lot for some but any and all help is appreciated. Been at this for 2 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Revit API is the .dll from Revit 2022.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What currently happens is when I run in 2020, I get this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;MYAPPNAME.dll	MYAPPNAME.dll	C:\Users\MYNAME\AppData\Roaming\Autodesk\Revit\Addins\2020\MYAPPNAME.dll	No	N/A	Symbols loaded.	\\Mac\Home\Desktop\RevitAPI-CSharp\MYAPPNAME\MYAPPNAME\obj\Debug2020\MYAPPNAME.pdb	200	2020.0.0.0	6/2/2021 7:02 PM	00000177017C0000-00000177017E8000	[10976] Revit.exe: Managed (v4.0.30319)		&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I check what .pbd module is found and running in Modules, I see that it's searching for the .pbd in the wrong location. it's searching the addins folder when it should be searching the bin/debug2020 folder.&lt;/P&gt;&lt;P&gt;It shows me this from the Symbol Load Information:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;C:\Users\MYNAME\AppData\Roaming\Autodesk\Revit\Addins\2020\MYAPPNAME.pdb: Cannot find or open the PDB file.
\\Mac\Home\Desktop\RevitAPI-CSharp\MYAPPNAME\MYAPPNAME\obj\Debug2020\MYAPPNAME.pdb: Symbols loaded.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my setup:&lt;/P&gt;&lt;P&gt;.csproj&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;PropertyGroup&amp;gt;
    &amp;lt;Configuration Condition=" '$(Configuration)' == '' "&amp;gt;Debug&amp;lt;/Configuration&amp;gt;
    &amp;lt;Platform Condition=" '$(Platform)' == '' "&amp;gt;AnyCPU&amp;lt;/Platform&amp;gt;
    &amp;lt;ProjectGuid&amp;gt;{70F64388-E18B-493B-8CCB-AF58A39B5688}&amp;lt;/ProjectGuid&amp;gt;
    &amp;lt;OutputType&amp;gt;Library&amp;lt;/OutputType&amp;gt;
    &amp;lt;AppDesignerFolder&amp;gt;Properties&amp;lt;/AppDesignerFolder&amp;gt;
    &amp;lt;RootNamespace&amp;gt;MYAPPNAME&amp;lt;/RootNamespace&amp;gt;
    &amp;lt;AssemblyName&amp;gt;MYAPPNAME&amp;lt;/AssemblyName&amp;gt;
    &amp;lt;TargetFrameworkVersion&amp;gt;v4.8&amp;lt;/TargetFrameworkVersion&amp;gt;
    &amp;lt;FileAlignment&amp;gt;512&amp;lt;/FileAlignment&amp;gt;
  &amp;lt;/PropertyGroup&amp;gt;
  &amp;lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug2020|AnyCPU' "&amp;gt;
    &amp;lt;DebugSymbols&amp;gt;true&amp;lt;/DebugSymbols&amp;gt;
    &amp;lt;DebugType&amp;gt;full&amp;lt;/DebugType&amp;gt;
    &amp;lt;Optimize&amp;gt;false&amp;lt;/Optimize&amp;gt;
    &amp;lt;OutputPath&amp;gt;bin\Debug\&amp;lt;/OutputPath&amp;gt;
    &amp;lt;DefineConstants&amp;gt;DEBUG;TRACE;REVIT2020&amp;lt;/DefineConstants&amp;gt;
    &amp;lt;ErrorReport&amp;gt;prompt&amp;lt;/ErrorReport&amp;gt;
    &amp;lt;WarningLevel&amp;gt;4&amp;lt;/WarningLevel&amp;gt;
    &amp;lt;RevitVersion&amp;gt;2020&amp;lt;/RevitVersion&amp;gt;
    &amp;lt;StartAction&amp;gt;Program&amp;lt;/StartAction&amp;gt;
    &amp;lt;StartProgram&amp;gt;$(ProgramW6432)\Autodesk\Revit 2020\Revit.exe&amp;lt;/StartProgram&amp;gt;
  &amp;lt;/PropertyGroup&amp;gt;
  &amp;lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "&amp;gt;
    &amp;lt;DebugType&amp;gt;pdbonly&amp;lt;/DebugType&amp;gt;
    &amp;lt;Optimize&amp;gt;true&amp;lt;/Optimize&amp;gt;
    &amp;lt;OutputPath&amp;gt;bin\Release\&amp;lt;/OutputPath&amp;gt;
    &amp;lt;DefineConstants&amp;gt;TRACE&amp;lt;/DefineConstants&amp;gt;
    &amp;lt;ErrorReport&amp;gt;prompt&amp;lt;/ErrorReport&amp;gt;
    &amp;lt;WarningLevel&amp;gt;4&amp;lt;/WarningLevel&amp;gt;
    &amp;lt;StartAction&amp;gt;Program&amp;lt;/StartAction&amp;gt;
    &amp;lt;StartProgram&amp;gt;$(ProgramW6432)\Autodesk\Revit 2020\Revit.exe&amp;lt;/StartProgram&amp;gt;
  &amp;lt;/PropertyGroup&amp;gt;
  &amp;lt;PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug2021|AnyCPU'"&amp;gt;
    &amp;lt;DebugSymbols&amp;gt;true&amp;lt;/DebugSymbols&amp;gt;
    &amp;lt;OutputPath&amp;gt;bin\Debug2021\&amp;lt;/OutputPath&amp;gt;
    &amp;lt;DefineConstants&amp;gt;DEBUG;TRACE;REVIT2021&amp;lt;/DefineConstants&amp;gt;
    &amp;lt;DebugType&amp;gt;full&amp;lt;/DebugType&amp;gt;
    &amp;lt;PlatformTarget&amp;gt;AnyCPU&amp;lt;/PlatformTarget&amp;gt;
    &amp;lt;LangVersion&amp;gt;7.3&amp;lt;/LangVersion&amp;gt;
    &amp;lt;ErrorReport&amp;gt;prompt&amp;lt;/ErrorReport&amp;gt;
    &amp;lt;RevitVersion&amp;gt;2021&amp;lt;/RevitVersion&amp;gt;
  &amp;lt;/PropertyGroup&amp;gt;
  &amp;lt;PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug2022|AnyCPU'"&amp;gt;
    &amp;lt;DebugSymbols&amp;gt;true&amp;lt;/DebugSymbols&amp;gt;
    &amp;lt;OutputPath&amp;gt;bin\Debug2022\&amp;lt;/OutputPath&amp;gt;
    &amp;lt;DefineConstants&amp;gt;DEBUG;TRACE;REVIT2022&amp;lt;/DefineConstants&amp;gt;
    &amp;lt;DebugType&amp;gt;full&amp;lt;/DebugType&amp;gt;
    &amp;lt;PlatformTarget&amp;gt;AnyCPU&amp;lt;/PlatformTarget&amp;gt;
    &amp;lt;LangVersion&amp;gt;7.3&amp;lt;/LangVersion&amp;gt;
    &amp;lt;ErrorReport&amp;gt;prompt&amp;lt;/ErrorReport&amp;gt;
    &amp;lt;RevitVersion&amp;gt;2022&amp;lt;/RevitVersion&amp;gt;
  &amp;lt;/PropertyGroup&amp;gt;

&amp;lt;!--...SOME OTHERCODE HERE...--&amp;gt;

&amp;lt;ItemGroup Condition=" '$(RevitVersion)' == '2020' "&amp;gt;
    &amp;lt;Reference Include="PresentationCore" /&amp;gt;
    &amp;lt;Reference Include="PresentationFramework" /&amp;gt;
    &amp;lt;Reference Include="RevitAPI"&amp;gt;
      &amp;lt;HintPath&amp;gt;C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll&amp;lt;/HintPath&amp;gt;
    &amp;lt;/Reference&amp;gt;
    &amp;lt;Reference Include="RevitAPIUI"&amp;gt;
      &amp;lt;HintPath&amp;gt;C:\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll&amp;lt;/HintPath&amp;gt;
    &amp;lt;/Reference&amp;gt;
[...OTHER REFERENCES HERE...]
&amp;lt;/ItemGroup&amp;gt;

&amp;lt;ItemGroup Condition=" '$(RevitVersion)' == '2021' "&amp;gt;
    &amp;lt;Reference Include="PresentationCore" /&amp;gt;
    &amp;lt;Reference Include="PresentationFramework" /&amp;gt;
    &amp;lt;Reference Include="RevitAPI"&amp;gt;
      &amp;lt;HintPath&amp;gt;C:\Program Files\Autodesk\Revit 2021\RevitAPI.dll&amp;lt;/HintPath&amp;gt;
    &amp;lt;/Reference&amp;gt;
    &amp;lt;Reference Include="RevitAPIUI"&amp;gt;
      &amp;lt;HintPath&amp;gt;C:\Program Files\Autodesk\Revit 2021\RevitAPIUI.dll&amp;lt;/HintPath&amp;gt;
    &amp;lt;/Reference&amp;gt;
[...OTHER REFERENCES HERE...]
&amp;lt;/ItemGroup&amp;gt;

&amp;lt;ItemGroup Condition=" '$(RevitVersion)' == '2022' "&amp;gt;
    &amp;lt;Reference Include="RevitAPI"&amp;gt;
      &amp;lt;HintPath&amp;gt;C:\Program Files\Autodesk\Revit 2022\RevitAPI.dll&amp;lt;/HintPath&amp;gt;
    &amp;lt;/Reference&amp;gt;
    &amp;lt;Reference Include="RevitAPIUI"&amp;gt;
      &amp;lt;HintPath&amp;gt;C:\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll&amp;lt;/HintPath&amp;gt;
    &amp;lt;/Reference&amp;gt;
[...OTHER REFERENCES HERE...]
&amp;lt;/ItemGroup&amp;gt;
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 02:11:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trouble-setting-up-multi-versioning/m-p/10359795#M25645</guid>
      <dc:creator>Maltezc</dc:creator>
      <dc:date>2021-06-03T02:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble setting up Multi-Versioning</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-setting-up-multi-versioning/m-p/10361108#M25646</link>
      <description>&lt;P&gt;Based on my experiences, I am going to make a suggestion:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create separate SLN and CSPROJ files for each version of Revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you are doing is the more "correct" way. I tried doing it that way too. Getting the conditionals to work for the references was complicated and fragile. I ended up with tons of headaches like you are experiencing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally gave up and created a separate project for each version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The drawback is that when you add files, you have to remember to add it to all your project versions. Yes, it is a pain. But it is only a little extra work and a fairly mechanical copy and paste between files. It is much less of a pain I have found than trying to get the references right.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 13:28:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trouble-setting-up-multi-versioning/m-p/10361108#M25646</guid>
      <dc:creator>David_Robison</dc:creator>
      <dc:date>2021-06-03T13:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble setting up Multi-Versioning</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/trouble-setting-up-multi-versioning/m-p/10362395#M25647</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/81704"&gt;@David_Robison&lt;/a&gt;&amp;nbsp;I've seemed to have gotten it working for now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To my surprise, it turns out I had the .csproj file set up correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, I ended up having to do a couple of steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. clean all builds and remove any residual files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. write a line in the post-build that copies the newly created .pdb from the bin/debug folder over to the addins folder where the debugger was looking for it. &lt;A href="https://docs.microsoft.com/en-us/visualstudio/debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger?view=vs-2019#BKMK_Specify_symbol_locations_and_loading_behavior" target="_self"&gt;After researching a bit how the debugger checks for .pdb files,&lt;/A&gt;&amp;nbsp;It checks where the .dll is created first apparently, if it can't find that then it ends up finding the one in the obj/bin folder. If it can't find it there then it searches the very very first Debug folder that was originally created when you first ran the build.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason, I wasn't able to set the path using the Tools --&amp;gt; Options --&amp;gt; Debugging --&amp;gt; Symbols --&amp;gt; Set Symbol File Locations as shown in the previous hyperlink.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We'll see how long this lasts. Hopefully, it doesn't break.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to pm me if you give it another try and need help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 21:45:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/trouble-setting-up-multi-versioning/m-p/10362395#M25647</guid>
      <dc:creator>Maltezc</dc:creator>
      <dc:date>2021-06-03T21:45:18Z</dc:date>
    </item>
  </channel>
</rss>

