469,963 Members | 2,761 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Assembly generation failed

Jim

I am trying to compile a demo from the XNA site and I get this error

Error 1 Assembly generation failed -- Error emitting
'System.Runtime.InteropServices.GuidAttribute' attribute --'Incorrect
UUID format.' MarbletsWindows

The only place I can see this assemble being used is here:

// The following GUID is for the ID of the typelib if this project is
exposed to COM
[assembly: Guid("$guid1$")]

I am a Delphi guy and just starting to learn C#. What does this line
mean? I can't find guid1 defined anywhere else in the project.

Using Visual C# 2008

Any thoughts?

Thanks.
Jim
--
www.mustangpeak.net
Nov 12 '08 #1
5 7663
On Nov 12, 8:24*am, "Jim" <j...@mustangpeak00.comwrote:
I am trying to compile a demo from the XNA site and I get this error

Error * 1 * * * Assembly generation failed -- Error emitting
'System.Runtime.InteropServices.GuidAttribute' attribute --'Incorrect
UUID format.' * MarbletsWindows

The only place I can see this assemble being used is here:

// The following GUID is for the ID of the typelib if this project is
exposed to COM
[assembly: Guid("$guid1$")]

I am a Delphi guy and just starting to learn C#. *What does this line
mean? *I can't find guid1 defined anywhere else in the project.

Using Visual C# 2008

Any thoughts?

Thanks.
Jim
--www.mustangpeak.net
Is the $guid1$ replaced with a valid GUID during build? GUIDs have a
specific format. You can generate on one the fly, but not sure what
your app is using it for.

Guid guid = Guid.NewGuid();

http://msdn.microsoft.com/en-us/libr...te(VS.80).aspx
http://msdn.microsoft.com/en-us/libr...d.newguid.aspx

Thanks,
-tom
Nov 12 '08 #2
Jim
thomasnguyencom wrote:
Guid.NewGuid();
How do I convert the GUID to a string in C#?

Jim
--
www.mustangpeak.net
Nov 12 '08 #3
Jim wrote:
thomasnguyencom wrote:
>Guid.NewGuid();

How do I convert the GUID to a string in C#?

Jim
With ToString, of course:

string str = Guid.NewGuid().ToString();

The overloads provide different format options.

Regards.
Nov 12 '08 #4
It really looks like you have a preprocessor item in the code. The []
brackets look like a method or class attribute, so going down the line of
generating a guid an converting to a string in C# does not really apply.
"Jim" <ji*@mustangpeak00.comwrote in message
news:OD**************@TK2MSFTNGP02.phx.gbl...
thomasnguyencom wrote:
>Guid.NewGuid();

How do I convert the GUID to a string in C#?

Jim
--
www.mustangpeak.net
Nov 12 '08 #5
Jim
Family Tree Mike wrote:
It really looks like you have a preprocessor item in the code. The
[] brackets look like a method or class attribute, so going down the
line of generating a guid an converting to a string in C# does not
really apply.
I'm an idiot. The XNA was a TEMPLATE not a compilable app. Once I
created a new project USING the template the new project contained this:

// The following GUID is for the ID of the typelib if this project is
exposed to COM
[assembly: Guid("478674fe-a18a-4c57-b8ba-a0cb73ff6fdd")]

Thanks,
Jim
--
www.mustangpeak.net
Nov 13 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Tony Jones | last post: by
1 post views Thread by Nadav | last post: by
3 posts views Thread by Richard | last post: by
7 posts views Thread by Alan T | last post: by
3 posts views Thread by =?Utf-8?B?U2hhcm9u?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.