Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Visual Studio 2015

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
FRFR1426
1867 Views, 8 Replies

Visual Studio 2015

Does anyone has already tried to compile a Revit addin with VS 2015? I've got a solution with several projects (one for each Revit version, 2013 to 2016) and only the 2016 one compile. The others fail with "csc2.exe exited with code 1". When I look in the object explorer, I see only one entry for RevitAPI.dll. On VS 2013, I see one entry for each version.

 

An AutoCAD project with a similar structure works, so I think it's a Revit problem. It's like there is a problem with loading the RevitAPI.dll metadata.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: FRFR1426

Looks like there are some issues with the 2015 RC that have already been reported:

 

https://github.com/dotnet/corefx/issues/1238

 

The issue has been marked as resolved, but presumably you'll need to wait for a new RC build or the final version to receive the fixes.

Message 3 of 9
FRFR1426
in reply to: Anonymous

OK, I'll wait.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Message 4 of 9
Dale.Bartlett
in reply to: FRFR1426

Now that VS2015 has been released, is there any update on this issue? Thanks, Dale




______________
Yes, I'm Satoshi.
Message 5 of 9
Anonymous
in reply to: Dale.Bartlett

That particular issue seems to have been resolved. I'm now able to compile DLL files with no issue.

 

I'm able to attach the VS 2015 debugger to a running Revit process, but I'm not able to launch Revit from VS.  The program will briefly open, but then I receive an error message "the program has exited with code -529697949 (0xe06d7363) 'Microsoft C++ Exception'."

 

I plan on doing some more testing before I decide whether to migrate to VS 2015 or to stick with VS 2012.

Message 6 of 9
Anonymous
in reply to: Anonymous

Enabling Native Code Debugging allows stops the crashing issue mentioned above from taking place, and allows Revit to be launched from Visual Studio with a debugger attached.
Message 7 of 9
FRFR1426
in reply to: Dale.Bartlett

Seems to work with the last release
Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Message 8 of 9
drewj
in reply to: Anonymous

Thanks Colin,

 

I just switched to the Community version of 2015 (to save a few dollars as I am a single user) from 2013 Pro and was having to attach to process, glad to be able to launch from VS with this advise.


Cheers,

 

Drew

Message 9 of 9
Troy_Gates
in reply to: drewj

VS 2015 official release is working for me also. Had the same problems with RC build, but great now.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community