D
doodles975
Guest
Hello everyone,
Ive got a problem compiling my CSharp programm, which I actually created with Visual Studio 2010.
I already tried and successfully exported the programm as a so called "ClickOnce Application", so this is working fine for me.
Due to some enterprise guidlines Im not allowed to use VS to set up a little helpful tool like this unless its able to compile/create it without any additional software installed on my computer.
The .NET Framework which is used by CSharp will always be installed and updated to the latest version on the computer.
1. Therefore my question is, if CSharp programms written in Visual Studio always fit these requirements no matter if Visual Studio is installed or there could be any complications.
2. The second question is about following error while trying to compile the .cs file with "csc.exe" (CS2034):
"error 2034: The type- or namespace Properties does not exist in namespace MyProgrammsNamespace. (Missing Assembly Reference?)"
The error occurs at the very first line of the .cs file "using MyProgrammsNamespace.Properties;"
I tried building the programm with msbuild, which is working perfectly. But as mentioned above Im no allowed to use the .sln file. Instead Ive have to use the native code which could also have been written in a standard texteditor and then be compiled via the "csc.exe" for example.
Is it possible to export all code which is needed into one single file which I can compile afterwards? Or is there also a more simple solution to tell the "csc.exe" where all the reference files are located so the error will be gone?
Hope this is enough information to my problem and there isnt already listed such a question I didnt find while searching the articles.
Thanks in advance.
Sincere regards,
doodles
Continue reading...
Ive got a problem compiling my CSharp programm, which I actually created with Visual Studio 2010.
I already tried and successfully exported the programm as a so called "ClickOnce Application", so this is working fine for me.
Due to some enterprise guidlines Im not allowed to use VS to set up a little helpful tool like this unless its able to compile/create it without any additional software installed on my computer.
The .NET Framework which is used by CSharp will always be installed and updated to the latest version on the computer.
1. Therefore my question is, if CSharp programms written in Visual Studio always fit these requirements no matter if Visual Studio is installed or there could be any complications.
2. The second question is about following error while trying to compile the .cs file with "csc.exe" (CS2034):
"error 2034: The type- or namespace Properties does not exist in namespace MyProgrammsNamespace. (Missing Assembly Reference?)"
The error occurs at the very first line of the .cs file "using MyProgrammsNamespace.Properties;"
I tried building the programm with msbuild, which is working perfectly. But as mentioned above Im no allowed to use the .sln file. Instead Ive have to use the native code which could also have been written in a standard texteditor and then be compiled via the "csc.exe" for example.
Is it possible to export all code which is needed into one single file which I can compile afterwards? Or is there also a more simple solution to tell the "csc.exe" where all the reference files are located so the error will be gone?
Hope this is enough information to my problem and there isnt already listed such a question I didnt find while searching the articles.
Thanks in advance.
Sincere regards,
doodles
Continue reading...