Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nxopen with VB 2010 - error

Status
Not open for further replies.

sidiclei

Mechanical
Mar 20, 2014
4
When I make a Debug appear this message: a project with an output type of class library cannot be started directly
How can I solve this problem?
 
Replies continue below

Recommended for you

sidclei,

I had the same issue a few days ago. Are you using a complete version of Visual Studio, or the Express Version? If you're using complete version, I believe you can't solve it by attaching to the ugraf.exe process. I think this option should be under "Debug > Attach to process"... or something like that, I'm not sure since I'm using the Express Version, and it seems that "Attach to process" is not supported for Express... Anyway, there's a workaround for this version... You need to open the project directory, and edit the .vbproj USER file. Add this code:

<PropertyGroup>
<StartAction>Program</StartAction>
<StartProgram>%UGII_BASE_DIR%\UGII\ugraf.exe</StartProgram>
</PropertyGroup>

Then you should be able to run your code. Anyway I still have some problems compiling to dll, but that's a different story hehe...
 
Hi Sidiclei,

I believe your output extension is ".dll". And you cannot run a .dll file from visual studio. Instead Open NX->press ctrl + u-> navigate to your .dll file.
If you want to debug then use tools-> attach to process-> select ugraf.exe and dont forget to add breakpoints in your code.

In love with NX,
Nikhil
 
Thank you very very much for your infomation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor