AssemblyInfo.cpp

I need help, When I create a console app the AssemblyInfo.cpp does not load. All the other source files loads except that one, what should I do?
[145 byte] By [Trinix] at [2007-12-16]
# 1
Please provide us more infos. What do you mean with "dows not load"?
MartinRichter at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 2

When you create Console Application project in VS.net there are several source files that are preloaded. Here are the source files that are preloaded. Just note this is not an empty project.
source files:
[your source code.cpp]
AssemblyInfo.cpp
stdafx.cpp

Header files that are preloaded are:
resource.h
stdafx.h

For some reason the AssemblyInfo.cpp & Resource.h files do not load. What can I do? If you do not understand still open up VS.net C++ click on console application. Check out the Solution explorer and you'll see what I mean.

Trinix at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 3
Sorry! But I can not reproduce this. I created a managed C++ Console project.
There is a AssemblyInfo.cpp and I double click it and it loads.
Tested with VS.NET 2003.
MartinRichter at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 4
I'm not asking to reproduce it, I'm asking what do I do since, for some reason, my version ( standard 2002 .net) doesn't load up the file. Would you know what's wrong with my version? Mine does not create AssemblyInfo.cpp or Resource.h. Should I buy another version?
Trinix at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 5

Reinstall VS.NET, or repair the installation.
The files are located in
Microsoft Visual Studio .NET 200x\Vc7\VCWizards\mc++winapp\templates\1033

The template for the AssemblyInfo.cpp should be found here.

MartinRichter at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 6
Trinix wrote:
I'm not asking to reproduce it, I'm asking what do I do since, for some reason, my version ( standard 2002 .net) doesn't load up the file.
Reproducing an error is the first step to resolving it.
RITZ at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 7
Thanks sooo much, I found it. But What do I do, it doesn't load when I choose console Application. I reparied it and and reinstalled it.
Trinix at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 8

Alright, I had a enough. I just added the AssemblyInfo.cpp and now I get TWO C1190 errors. Anyone know what I could do to fix this. Here is my code:

#include "stdafx.h"

#using <mscorlib.dll>

using namespace System;

int _tmain()

{

Console::WriteLine("Hello World");

return 0;

}

Trinix at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 9
Sorry again. My project gets created and compiles.
It seams that your installation is messed up.
MartinRichter at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...