Cannot Build Visual Studio Installer Project when main project has any .winmd references Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!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?
Why does my GNOME settings mention "Moto C Plus"?
/bin/ls sorts differently than just ls
xkeyval -- read keys from file
Trying to enter the Fox's den
Has a Nobel Peace laureate ever been accused of war crimes?
Raising a bilingual kid. When should we introduce the majority language?
Why do C and C++ allow the expression (int) + 4*5?
How do I overlay a PNG over two videos (one video overlays another) in one command using FFmpeg?
What helicopter has the most rotor blades?
Does Prince Arnaud cause someone holding the Princess to lose?
Coin Game with infinite paradox
Why did Europeans not widely domesticate foxes?
Kepler's 3rd law: ratios don't fit data
2 sample t test for sample sizes - 30,000 and 150,000
“Since the train was delayed for more than an hour, passengers were given a full refund.” – Why is there no article before “passengers”?
Assertions In A Mock Callout Test
When does Bran Stark remember Jamie pushing him?
Is Bran literally the world's memory?
Are there any AGPL-style licences that require source code modifications to be public?
When speaking, how do you change your mind mid-sentence?
Why is ArcGIS Pro not symbolizing my entire range of values?
A German immigrant ancestor has a "Registration Affidavit of Alien Enemy" on file. What does that mean exactly?
BV functions and wave equation
"Destructive force" carried by a B-52?
Cannot Build Visual Studio Installer Project when main project has any .winmd references
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!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
214
214
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