Exited With Code 1

Exited With Code 1

Anonymous
Not applicable
2,469 Views
2 Replies
Message 1 of 3

Exited With Code 1

Anonymous
Not applicable

bug.JPG

 

Hi Everyone,

 

This error seems randomly appear. I couldn't find any clues toward this problem.

 

I use Visual Studio 2017 and Revit 2016

 

Thanks in advance.

0 Likes
Accepted solutions (1)
2,470 Views
2 Replies
Replies (2)
Message 2 of 3

matthew_taylor
Advisor
Advisor
Accepted solution
Hi,
That's a post-build event failure.
What's happening is that you build the solution, it copies the dll to your addin folder, it's loaded into Revit. Then, you change code, and rebuild your solution. The post-build event can't copy the file over the one that's loaded into Revit, hence the error.
You either need to close Revit, rebuild, then restart Revit, or use a different work flow. There's a work flow that works well by using the Addin Manager. There's a post on thebuildingcoder about it. Hunt it out. If you can't find it let us know!

Good luck.

Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
Message 3 of 3

cedric.wehren
Explorer
Explorer

Everyone else whos reading this in 2021,

 

make sure all your Revit dll references are set to local copy "false" in the IDE.

0 Likes