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;








0















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?










share|improve this question




























    0















    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?










    share|improve this question
























      0












      0








      0








      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 16 '17 at 19:21









      MikeMike

      190116




      190116






















          3 Answers
          3






          active

          oldest

          votes


















          1














          you can also try to set the reference property to CopyLocal=false






          share|improve this answer






























            1














            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.






            share|improve this answer






























              0














              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.






              share|improve this answer























                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
                );



                );













                draft saved

                draft discarded


















                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









                1














                you can also try to set the reference property to CopyLocal=false






                share|improve this answer



























                  1














                  you can also try to set the reference property to CopyLocal=false






                  share|improve this answer

























                    1












                    1








                    1







                    you can also try to set the reference property to CopyLocal=false






                    share|improve this answer













                    you can also try to set the reference property to CopyLocal=false







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 25 '18 at 21:59









                    ridorido

                    989612




                    989612























                        1














                        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.






                        share|improve this answer



























                          1














                          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.






                          share|improve this answer

























                            1












                            1








                            1







                            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.






                            share|improve this answer













                            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.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 9 at 2:16









                            RobRob

                            213




                            213





















                                0














                                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.






                                share|improve this answer



























                                  0














                                  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.






                                  share|improve this answer

























                                    0












                                    0








                                    0







                                    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.






                                    share|improve this answer













                                    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.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Nov 17 '17 at 18:30









                                    MikeMike

                                    190116




                                    190116



























                                        draft saved

                                        draft discarded
















































                                        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.




                                        draft saved


                                        draft discarded














                                        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





















































                                        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







                                        Popular posts from this blog

                                        How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

                                        Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

                                        List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229