I have two solutions and they each have the same: Project guid

A

AAaron123

I needed a new solution that was little different from one I already had so
I copied the entire folder including the .sln file to a new folder and then
modified the files as needed.

So I now have two solutions and they each have the same guid [as in
Project("{guid )]

What are the ramifications of that?


Thanks
 
D

David Connet

I needed a new solution that was little different from one I already
had so I copied the entire folder including the .sln file to a new
folder and then modified the files as needed.

So I now have two solutions and they each have the same guid [as in
Project("{guid )]

What are the ramifications of that?

Not sure - as long as the projects are in different solutions, you're
probably fine. If they're in the same solution, that could cause problems
as the solution uses the guids.

You could always use uuidgen (command line) or guidgen (gui) and generate a
new guid. Then edit the project in a text editor and change the uuid. (I do
that all the time when using a previous project as a template for a new
project)


Dave Connet
 
P

Peter Morris

What are the ramifications of that?

More importantly, what is the benefit of leaving it that way?
 
A

AAaron123

David Connet said:
I needed a new solution that was little different from one I already
had so I copied the entire folder including the .sln file to a new
folder and then modified the files as needed.

So I now have two solutions and they each have the same guid [as in
Project("{guid )]

What are the ramifications of that?

Not sure - as long as the projects are in different solutions, you're
probably fine. If they're in the same solution, that could cause problems
as the solution uses the guids.

You could always use uuidgen (command line) or guidgen (gui) and generate
a
new guid. Then edit the project in a text editor and change the uuid. (I
do
that all the time when using a previous project as a template for a new
project)


Dave Connet


You could always use uuidgen ...
I didn't know if the guid was referenced someplace else (registry...)
If I understand the above I'd have to change in the project and in the
solution.

Thanks
 
A

AAaron123

1)I don't have to do anything to leave it that way.
2)I can't introduce an error if I don't change it.
 
P

Peter Morris

1)I don't have to do anything to leave it that way.
2)I can't introduce an error if I don't change it.

All you need to do is to search/replace the GUID in the solution + in each
of the projects within the solution.
 
J

Jeff Johnson

It is not in the registry??

No. One of the "lessons learned" from COM was to try to stay away from
messing with the registry. Most things related to .NET do not use the
registry.
 
P

Peter Morris

No. One of the "lessons learned" from COM was to try to stay away from
messing with the registry. Most things related to .NET do not use the
registry.

Even COM objects may be consumed without using the registry :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top