c# - Merge Module in setup project across different solutions says “unable to determine name” -


a setup project shared between 2 solutions:

  1. setupone.sln
  2. setuptwo.sln

the setup project contains output merge module. in setup project in setupone.sln, references merge module expected. however, in setuptwo.sln says “unable determine name” , fails build. “fixing” issue re-adding merged module in solution setuptwo.sln breaks merged module reference in setupone.sln - says “unable determine name” , fails build.

this due guid mismatch in solution file. i’ll illustrate fix follows:

create 2 new empty solutions, setupone , setuptwo. in setupone, add new setup project called setupone , add new mergemodule project called mergemodule. add mergemodule setupone in usual way. should have looks this:

enter image description here

now add setuptwo existing projects setupone , mergemodule. should have looks this:

enter image description here

note have “unable determine name” in project setupone in solution setuptwo. cause build fail. fix this, open setupone.sln , setuptwo.sln in text editor. in setupone.sln have:

project("{54435603-dbb4-11d2-8724-00a0c9a8b90c}") = "setupone", "setupone\setupone.vdproj", "{8af96d5b-4852-4862-9894-0278ed68054c}" endproject project("{54435603-dbb4-11d2-8724-00a0c9a8b90c}") = "mergemodule", "mergemodule\mergemodule.vdproj", "{55f30708-f70e-4b78-9f3c-f312bfb1af80}" endproject 

and in setuptwo.sln have:

project("{54435603-dbb4-11d2-8724-00a0c9a8b90c}") = "setupone", "..\setupone\setupone\setupone.vdproj", "{ae3e9bde-529f-430c-8eea-fe5e8a5fac7d}" endproject project("{54435603-dbb4-11d2-8724-00a0c9a8b90c}") = "mergemodule", "..\setupone\mergemodule\mergemodule.vdproj", "{5ddd8fe2-8736-4d77-960e-da98beb6cb8f}" endproject 

the guids setupone , mergemodule in setuptwo.sln different in setupone , mergemodule in setupone.sln. edit guids these projects same across both solutions. when this, visual solution reloads setuptwo solution , have:

enter image description here

which builds without fail.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -