Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VS2008 C#
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-Oct-12 12:19pm
supernorb2.5K

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 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 at 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 at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 399
1 Nirav Prabtani 338
2 Abhinav S 170
3 PIEBALDconsult 160
4 Dave Kreskowiak 155
0 OriginalGriff 7,580
1 Sergey Alexandrovich Kryukov 6,806
2 Maciej Los 3,919
3 Peter Leow 3,693
4 CHill60 2,742


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 1 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100