Visual Studio 2015

Visual Studio 2015

FRFR1426
Collaborator Collaborator
2,322 Views
8 Replies
Message 1 of 9

Visual Studio 2015

FRFR1426
Collaborator
Collaborator

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
0 Likes
Accepted solutions (1)
2,323 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
Accepted solution

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
Collaborator
Collaborator

OK, I'll wait.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Message 4 of 9

Dale.Bartlett
Collaborator
Collaborator

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




______________
Yes, I'm Satoshi.
0 Likes
Message 5 of 9

Anonymous
Not applicable

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.

0 Likes
Message 6 of 9

Anonymous
Not applicable
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
Collaborator
Collaborator
Seems to work with the last release
Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Message 8 of 9

drewj
Enthusiast
Enthusiast

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

0 Likes
Message 9 of 9

Troy_Gates
Advocate
Advocate

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

0 Likes