Cannot Build Visual Studio Installer Project when main project has any .winmd referenceswindows service setup installerWhat are the various “Build action” settings in Visual Studio project properties and what do they do?How to run Visual Studio post-build events for debug build onlyHow to rename a Project Folder from within Visual Studio?How do I add an existing directory tree to a project in Visual Studio?.gitignore for Visual Studio Projects and SolutionsApp.Config Transformation for projects which are not Web Projects in Visual Studio?Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?Removing all unused references from a project in Visual Studio projectsReSharper “Cannot resolve symbol” even when project buildsHow to register for BLE notifcations from a WPF app running on Windows 10 Creators Update?
Writing rule stating superpower from different root cause is bad writing
Mage Armor with Defense fighting style (for Adventurers League bladeslinger)
Is it legal for company to use my work email to pretend I still work there?
Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?
Which models of the Boeing 737 are still in production?
Why do falling prices hurt debtors?
How to write a macro that is braces sensitive?
What's the point of deactivating Num Lock on login screens?
How old can references or sources in a thesis be?
Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)
Can divisibility rules for digits be generalized to sum of digits
Has the BBC provided arguments for saying Brexit being cancelled is unlikely?
Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)
How can I make my BBEG immortal short of making them a Lich or Vampire?
How much RAM could one put in a typical 80386 setup?
How can bays and straits be determined in a procedurally generated map?
How to find program name(s) of an installed package?
Font hinting is lost in Chrome-like browsers (for some languages )
Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?
Can a Warlock become Neutral Good?
Is it possible to do 50 km distance without any previous training?
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
Modeling an IPv4 Address
Minkowski space
Cannot Build Visual Studio Installer Project when main project has any .winmd references
windows service setup installerWhat are the various “Build action” settings in Visual Studio project properties and what do they do?How to run Visual Studio post-build events for debug build onlyHow to rename a Project Folder from within Visual Studio?How do I add an existing directory tree to a project in Visual Studio?.gitignore for Visual Studio Projects and SolutionsApp.Config Transformation for projects which are not Web Projects in Visual Studio?Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?Removing all unused references from a project in Visual Studio projectsReSharper “Cannot resolve symbol” even when project buildsHow to register for BLE notifcations from a WPF app running on Windows 10 Creators Update?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm following the steps in this article.
My solution has a console app project and a visual studio installer project.
In the console app project, if I add any of the following references, I can no longer build my installer project.
For example, in the add references dialog, I go to browse, and select
C:Program Files (x86)Windows Kits10References10.0.15063.0Windows.Foundation.UniversalApiContract4.0.0.0Windows.Foundation.UniversalApiContract.winmd
This reference will prevent my deployment project from building. The error message is:
ERROR: An error occurred while validating. HRESULT = '80070057'
Similarly, all of these references will break the deployment project build.
Windows.Foundation.FoundationContract.winmd
Windows.winmd
Windows.Foundation.UniversalApiContract.winmd
Windows.Foundation.FoundationContract.winmd
My question is, how do I reference these UWP APIs without breaking my installer project?
c# .net windows visual-studio
add a comment |
I'm following the steps in this article.
My solution has a console app project and a visual studio installer project.
In the console app project, if I add any of the following references, I can no longer build my installer project.
For example, in the add references dialog, I go to browse, and select
C:Program Files (x86)Windows Kits10References10.0.15063.0Windows.Foundation.UniversalApiContract4.0.0.0Windows.Foundation.UniversalApiContract.winmd
This reference will prevent my deployment project from building. The error message is:
ERROR: An error occurred while validating. HRESULT = '80070057'
Similarly, all of these references will break the deployment project build.
Windows.Foundation.FoundationContract.winmd
Windows.winmd
Windows.Foundation.UniversalApiContract.winmd
Windows.Foundation.FoundationContract.winmd
My question is, how do I reference these UWP APIs without breaking my installer project?
c# .net windows visual-studio
add a comment |
I'm following the steps in this article.
My solution has a console app project and a visual studio installer project.
In the console app project, if I add any of the following references, I can no longer build my installer project.
For example, in the add references dialog, I go to browse, and select
C:Program Files (x86)Windows Kits10References10.0.15063.0Windows.Foundation.UniversalApiContract4.0.0.0Windows.Foundation.UniversalApiContract.winmd
This reference will prevent my deployment project from building. The error message is:
ERROR: An error occurred while validating. HRESULT = '80070057'
Similarly, all of these references will break the deployment project build.
Windows.Foundation.FoundationContract.winmd
Windows.winmd
Windows.Foundation.UniversalApiContract.winmd
Windows.Foundation.FoundationContract.winmd
My question is, how do I reference these UWP APIs without breaking my installer project?
c# .net windows visual-studio
I'm following the steps in this article.
My solution has a console app project and a visual studio installer project.
In the console app project, if I add any of the following references, I can no longer build my installer project.
For example, in the add references dialog, I go to browse, and select
C:Program Files (x86)Windows Kits10References10.0.15063.0Windows.Foundation.UniversalApiContract4.0.0.0Windows.Foundation.UniversalApiContract.winmd
This reference will prevent my deployment project from building. The error message is:
ERROR: An error occurred while validating. HRESULT = '80070057'
Similarly, all of these references will break the deployment project build.
Windows.Foundation.FoundationContract.winmd
Windows.winmd
Windows.Foundation.UniversalApiContract.winmd
Windows.Foundation.FoundationContract.winmd
My question is, how do I reference these UWP APIs without breaking my installer project?
c# .net windows visual-studio
c# .net windows visual-studio
asked Nov 16 '17 at 19:21
MikeMike
190116
190116
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
you can also try to set the reference property to CopyLocal=false
add a comment |
I have come across the same problem when using the new Microsoft Installer Projects for VS2017 (Enterprise).
I echo Mike's solution - add the project output files into the project manually. If you reference the "/bin/Release" project binaries then it will always incorporate the most up-to-date copy anyway (providing you build the projects before the installer). Turns out you don't need a copy of the .winmd in the application directory for it to run correctly.
You can produce the GUI version of the 80070057 error by trying to add a .winmd file by hand to any installer project.
add a comment |
The solution was to copy/paste the build files (.exe and .dll) into the deployment project's file system, instead of having the deployment project build the project output.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47337529%2fcannot-build-visual-studio-installer-project-when-main-project-has-any-winmd-re%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
you can also try to set the reference property to CopyLocal=false
add a comment |
you can also try to set the reference property to CopyLocal=false
add a comment |
you can also try to set the reference property to CopyLocal=false
you can also try to set the reference property to CopyLocal=false
answered Jan 25 '18 at 21:59
ridorido
989612
989612
add a comment |
add a comment |
I have come across the same problem when using the new Microsoft Installer Projects for VS2017 (Enterprise).
I echo Mike's solution - add the project output files into the project manually. If you reference the "/bin/Release" project binaries then it will always incorporate the most up-to-date copy anyway (providing you build the projects before the installer). Turns out you don't need a copy of the .winmd in the application directory for it to run correctly.
You can produce the GUI version of the 80070057 error by trying to add a .winmd file by hand to any installer project.
add a comment |
I have come across the same problem when using the new Microsoft Installer Projects for VS2017 (Enterprise).
I echo Mike's solution - add the project output files into the project manually. If you reference the "/bin/Release" project binaries then it will always incorporate the most up-to-date copy anyway (providing you build the projects before the installer). Turns out you don't need a copy of the .winmd in the application directory for it to run correctly.
You can produce the GUI version of the 80070057 error by trying to add a .winmd file by hand to any installer project.
add a comment |
I have come across the same problem when using the new Microsoft Installer Projects for VS2017 (Enterprise).
I echo Mike's solution - add the project output files into the project manually. If you reference the "/bin/Release" project binaries then it will always incorporate the most up-to-date copy anyway (providing you build the projects before the installer). Turns out you don't need a copy of the .winmd in the application directory for it to run correctly.
You can produce the GUI version of the 80070057 error by trying to add a .winmd file by hand to any installer project.
I have come across the same problem when using the new Microsoft Installer Projects for VS2017 (Enterprise).
I echo Mike's solution - add the project output files into the project manually. If you reference the "/bin/Release" project binaries then it will always incorporate the most up-to-date copy anyway (providing you build the projects before the installer). Turns out you don't need a copy of the .winmd in the application directory for it to run correctly.
You can produce the GUI version of the 80070057 error by trying to add a .winmd file by hand to any installer project.
answered Mar 9 at 2:16
RobRob
213
213
add a comment |
add a comment |
The solution was to copy/paste the build files (.exe and .dll) into the deployment project's file system, instead of having the deployment project build the project output.
add a comment |
The solution was to copy/paste the build files (.exe and .dll) into the deployment project's file system, instead of having the deployment project build the project output.
add a comment |
The solution was to copy/paste the build files (.exe and .dll) into the deployment project's file system, instead of having the deployment project build the project output.
The solution was to copy/paste the build files (.exe and .dll) into the deployment project's file system, instead of having the deployment project build the project output.
answered Nov 17 '17 at 18:30
MikeMike
190116
190116
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47337529%2fcannot-build-visual-studio-installer-project-when-main-project-has-any-winmd-re%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown