- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ok... I've read all of the posts regarding upgrading, I have applied everything that my limited experience allows me to understand (Been doing this for years, but on a limited basis as writing code isn't even in my job description these days and I can barely decipher all of the C# examples since I'm not bilingual and my native language is VB).
So far I have managed, through days of trial and error, to port one of my solutions (with 3 Projects) and have slowly whittled away the errors and warnings. My WinForms dialogs were a real bear but I finally managed to delete enough tags in the VBproj files to get them working (creating a new WinForms solution and project from scratch and doing some comparisons helped with that as it didn't have all the extra gobbledygook in it).
Finally upgraded successfully with one exception:
Warning MSB3277 Found conflicts between different versions of "WindowsBase" that could not be resolved.
I've updated to all of the latest (which I'm beginning to believe might be my issue)
I'm working in
Visual Studio Community 2022 Version 17.9.6
With
dotnet SDK 8.0.204
The expanded form of the warning looks like this:
Warning MSB3277 Found conflicts between different versions of "WindowsBase" that could not be resolved.
There was a conflict between "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "WindowsBase, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35".
"WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" was chosen because it was primary and "WindowsBase, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" was not.
References which depend on "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" [C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.4\ref\net8.0\WindowsBase.dll].
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.4\ref\net8.0\WindowsBase.dll
Project file item includes which caused reference "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.4\ref\net8.0\WindowsBase.dll".
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\8.0.4\ref/net8.0/WindowsBase.dll
References which depend on or have been unified to "WindowsBase, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" [].
C:\Program Files\Autodesk\Revit 2025\RevitAPI.dll
Project file item includes which caused reference "C:\Program Files\Autodesk\Revit 2025\RevitAPI.dll".
RevitAPI
RevitAPIUI
C:\Program Files\Autodesk\Revit 2025\RevitAPIUI.dll
Project file item includes which caused reference "C:\Program Files\Autodesk\Revit 2025\RevitAPIUI.dll".
RevitAPIUI
C:\Program Files\Autodesk\Revit 2025\AdskRcManaged.dll
Project file item includes which caused reference "C:\Program Files\Autodesk\Revit 2025\AdskRcManaged.dll".
RevitAPI
RevitAPIUI
...
Those last four lines repeat about 50 times with the only change being the name of the dll (most listing both RevitAPI and RevitAPIUI but several just listing RevitAPIUI).
I get this warning on both the ported/upgraded solution/projects as well as the solution/project that I started from scratch.
Has anyone seen this warning and/or know a solution for resolving the conflict between the Revit API references and the newer native .Net references?
Thanks in advance for any assistance,
-Gary
GaryOrrMBI (MBI Companies 2014-Current)
aka (past user names):
Gary_J_Orr (GOMO Stuff 2008-2014);
OrrG (Forum Studio 2005-2008);
Gary J. Orr (LHB Inc 2002-2005);
Orr, Gary J. (Gossen Livingston 1997-2002)
Solved! Go to Solution.