Build warning - mismatch between the processor architecture - rvt 2019 = 4.7?

Build warning - mismatch between the processor architecture - rvt 2019 = 4.7?

Anonymous
Not applicable
9,116 Views
3 Replies
Message 1 of 4

Build warning - mismatch between the processor architecture - rvt 2019 = 4.7?

Anonymous
Not applicable

warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "RevitAPI", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. (yes there is another error, but it is the same issue, ignore).

explorer2.png

Below I have attached images of the settings. The RevitAPI.dll is pathed to the 2019 folder so it should be compatible. 

 

explorer.png     explorer1.png

Any thoughts? What am I missing? Note I am new to C# and building plugins.

Thanks for the help!

0 Likes
Accepted solutions (1)
9,117 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

Found the solution.

Build > Configuration Manager > Active solution platform: change Any CPU to x64

note the waring said "AMD64", This was the issue...

 

explorer3.png

Message 3 of 4

Sean_Page
Collaborator
Collaborator

You can also set this more globally in the Build Tab of the Project Properties using the Platform Target drop down.

vs2015_proppage_build.png

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
0 Likes
Message 4 of 4

jeremy_tammik
Alumni
Alumni

You can also fix it globally by editing the Visual Studio CSPROJ and VBPROJ project files:

 

 

I used this to remove this warning message from the Revit SDK samples, encompassing hundreds of projects.

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open