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

                                        Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

                                        Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

                                        How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page