Click here to Skip to main content
15,886,632 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I installed this version of VS C# in Win XP sp3 and it worked as it should but in Windows 7 ultimate v1 it turns odd to me. Normally if I build a solution,there should be some .exe or .dll file in Release folder but this folder always be empty and I can only find the built files in the Debug folder instead.
Could you please tell me if I can fix this issue?

Plus, this version of mine has another nasty problem that the option "Allow unsafe code" in Build tab of Project Properties window doesn't work, and instead I have to use keyword unsafe in my code to be able to run my project.

Your help would be highly appreciated!
Posted

1 solution

The "Allow unsafe code" option only lets you use the "unsafe" keyword. It does not replace the "unsafe" keyword.

As for the build, either you're not changing the build configuration option to Release, or your solution file is messed up. Try showing hidden files in your project folder (in Explorer) and delete the .suo file, then reopen the solution.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Oct-12 20:04pm    
Right, a 5. First paragraphs is just the fact, second one -- very likely the case, and a good clean-up advice.
I also recommend, having VS closed, to delete all temporary files, with "obj" subdirectory -- this is the complete clean up.
--SA
supernorb 2-Oct-12 13:57pm    
If so I have to do that every time I create new project? My computer always shows hidden files, I like so, and I don't see any file with .suo extension in my projects. Anyway, thanks for the 'unsafe' using explanation.
supernorb 2-Oct-12 14:02pm    
Sorry, the last comment of mine was made when I hadn't tried changing the build configuration option to Release. After doing so, it works as it should. Thank you very much and of course with my 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900