msbuild | Microsoft Build Engine is the build platform | Code Editor library

 by   dotnet C# Version: v17.7.0-preview-23281-03 License: MIT

kandi X-RAY | msbuild Summary

kandi X-RAY | msbuild Summary

msbuild is a C# library typically used in Editor, Code Editor applications. msbuild has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

The Microsoft Build Engine is a platform for building applications. This engine, also known as MSBuild, provides an XML schema for a project file that controls how the build platform processes and builds software. Visual Studio uses MSBuild, but MSBuild can run without Visual Studio. By invoking msbuild.exe on your project or solution file, you can orchestrate and build products in environments where Visual Studio isn't installed. For more information on MSBuild, see the MSBuild documentation on docs.microsoft.com. The changelog has detailed information about changes made in different releases.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              msbuild has a medium active ecosystem.
              It has 4985 star(s) with 1334 fork(s). There are 398 watchers for this library.
              There were 2 major release(s) in the last 12 months.
              There are 1228 open issues and 2871 have been closed. On average issues are closed in 241 days. There are 42 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of msbuild is v17.7.0-preview-23281-03

            kandi-Quality Quality

              msbuild has 0 bugs and 0 code smells.

            kandi-Security Security

              msbuild has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              msbuild code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              msbuild is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              msbuild releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.
              It has 8087 lines of code, 0 functions and 1777 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of msbuild
            Get all kandi verified functions for this library.

            msbuild Key Features

            No Key Features are available at this moment for msbuild.

            msbuild Examples and Code Snippets

            No Code Snippets are available at this moment for msbuild.

            Community Discussions

            QUESTION

            Could not locate MSBuild instance to register with OmniSharp
            Asked 2022-Apr-01 at 22:39

            I have found many questions about this but non have helped me. I am trying to write c# code and the omnisharp auto complete doesn't work and I get this back from the Omnisharp Log:

            ...

            ANSWER

            Answered 2022-Mar-26 at 02:22

            Suddenly got this problem too, adding "omnisharp.useModernNet": true to the settings.json fixed it for me.

            Source https://stackoverflow.com/questions/71622214

            QUESTION

            AzurePipeline failing due to: The reference assemblies for .NETFramework,Version=v4.6.1 were not found
            Asked 2022-Mar-25 at 09:30

            I have an Azure pipeline setup for my builds. I have been running into this issue recently and cannot figure out a way to fix this:

            ...

            ANSWER

            Answered 2022-Mar-16 at 06:02

            From Agent pool - Change Agent Specification from Window-Latest to Window-2019 ,It seems MS has done some changes in default agent

            Image

            Source https://stackoverflow.com/questions/71486310

            QUESTION

            Visual Studio 2022 Can't Build Any Projects
            Asked 2022-Mar-03 at 06:32

            Every time I go to build any project in Visual Studio 2022, all I get in the buil output is:

            ...

            ANSWER

            Answered 2022-Mar-02 at 00:29

            The problem turned out to be caused by Symantec Endpoint Protection. It's an antivirus software that seems to kill processes it doesn't trust, by injecting its own DLL and causing them to fault.

            So whenever msbuild.exe was running, Symantec would kill it. To resolve it, our IT team needed to add a policy to allow msbuild.exe.

            Strange VS didn't detect MSBuild.exe had died, it just say there indefinitely.

            I found this in the Windows Event Viewer under Application Events:

            Source https://stackoverflow.com/questions/71305318

            QUESTION

            Is there a way to detect the current SDK being used in a .targets MSBuild file?
            Asked 2022-Feb-17 at 10:05

            In .NET, you can specify which .NET project SDK you would like to use by specifying the Sdk attribute on the top-level Project element:

            ...

            ANSWER

            Answered 2022-Feb-17 at 10:05

            The closest I've found using Rider IDE's Project Properties window:

            This is in a project using the Microsoft.NET.Web.Sdk.
            So it seems there are 3 SDK related properties set in a Web SDK project:

            Source https://stackoverflow.com/questions/71039426

            QUESTION

            "Configuring the trigger failed, edit and save the pipeline again" with no noticeable error and no further details
            Asked 2022-Feb-16 at 10:33

            I have run in to an odd problem after converting a bunch of my YAML pipelines to use templates for holding job logic as well as for defining my pipeline variables. The pipelines run perfectly fine, however I get a "Some recent issues detected related to pipeline trigger." warning at the top of the pipeline summary page and viewing details only states: "Configuring the trigger failed, edit and save the pipeline again."

            The odd part here is that the pipeline works completely fine, including triggers. Nothing is broken and no further details are given about the supposed issue. I currently have YAML triggers overridden for the pipeline, but I did also define the same trigger in the YAML to see if that would help (it did not).

            I'm looking for any ideas on what might be causing this or how I might be able to further troubleshoot it given the complete lack of detail that the error/warning provides. It's causing a lot of confusion among developers who think there might be a problem with their builds as a result of the warning.

            Here is the main pipeline. the build repository is a shared repository for holding code that is used across multiple repos in the build system. dev.yaml contains dev environment specific variable values. Shared holds conditionally set variables based on the branch the pipeline is running on.

            ...

            ANSWER

            Answered 2021-Aug-17 at 14:58

            I think I may have figured out the problem. It appears that this is related to the use of conditionals in the variable setup. While the variables will be set in any valid trigger configuration, it appears that the proper values are not used during validation and that may have been causing the problem. Switching my conditional variables to first set a default value and then replace the value conditionally seems to have fixed the problem.

            It would be nice if Microsoft would give a more useful error message here, something to the extent of the values not being found for a given variable, but adding defaults does seem to have fixed the problem.

            Source https://stackoverflow.com/questions/68819306

            QUESTION

            GitLab Runner fails to upload artifacts with "invalid argument" error
            Asked 2022-Feb-08 at 15:22

            I'm completely new to trying to implement GitLab's CI/CD pipelines, but it's been going quite well. In fact, for my ASP.NET project, if I specify a Publish Profile in the msbuild command that uses Web Deploy, it actually deploys the code successfully to the web server.

            However, I'm now wanting to have the "build" job create artifacts which are uploaded to GitLab that I can then subsequently deploy. We're using a self-hosted instance of GitLab, for which I'm not an admin, but I can speak to the admin if I know what I'm asking for!

            So I've configured my gitlab-ci.yml file like this:

            ...

            ANSWER

            Answered 2022-Feb-08 at 15:22

            After countless hours working on this, it seems that ultimately the issue was that our internal Web Application Firewall was blocking some part of the transfer of artefacts to the server, or the response back from it. With the WAF reconfigured not to block traffic from the machine running the GitLab Runner, the artefacts are successfully uploaded and the job succeeds.

            This would have been significantly easier to diagnose if the logging from GitLab was better. As per my comment on this issue, it should be possible to see the content of the response from the GitLab server after uploading artefacts, even when the response code is 200.

            What's strange - and made diagnosing the issue even harder - is that when I worked through the issue with the admin of our GitLab instance, digging through logs and running it in debug mode, the artefact upload process was uploading something successfully. We could see, for example, the GitLab Runner's log had been uploaded to the server. Clearly the WAF's blocking was selective and didn't block everything in both directions.

            Source https://stackoverflow.com/questions/70880840

            QUESTION

            npm ERR! gyp ERR! when installing node sass in windows 11 with Visual Studio 2022 Enterprise installed
            Asked 2022-Feb-04 at 10:14

            I'm trying to install npm install node-sass --save-dev in my windows 11 but I get this npm ERR! gyp ERR!

            Error details:

            ...

            ANSWER

            Answered 2021-Nov-23 at 17:00

            @jonrsharpe many thanks for the inputs. You saved a lot of my time.

            Downgrading node.js from version 17.1.0 to version 16.13.0 resolved the issue.

            Source https://stackoverflow.com/questions/70082657

            QUESTION

            Forcing VS2022 to use 32 bit version of msbuild
            Asked 2022-Feb-03 at 06:44

            I'm currently investigating migrating our toolset from VS2013, 15, and 17 to just VS2022 in order to streamline and reduce the amount of software needed to build our solution. VS2022 has all the parts we need however I'm struggling to get the actual solution to build through VS itself.

            The solution builds entirely fine if I use the accompanying 32 bit version of msbuild at the path C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe. However the C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\amd64\MSBuild.exe version (which I'm guessing VS22 uses?) fails to build with the same errors as through VS22.

            It's important to note our solution/projects are primarily based on .net framework 2.0 (unfortunately) and are set to x86 platform.

            I keep cycling back to the following error SGEN : error : An attempt was made to load an assembly with an incorrect format on various first and third-party dll's. I've been trialling back and forth combinations of the following:

            • changing projects between x86 and AnyCPU but the error still crops regardless of the project and it's references' configurations
            • turning off Generate serialization assembly on the projects as I've seen somewhere that people have had success solving the error by doing this.
            • changing ToolsVersion from 4.0 (our current setting) to Current and other versions

            I'm effectively looking for a way to force VS2022 to use the 32bit msbuild if that's at all possible as it builds the entire solution without making any changes at all.

            I did also notice the following in VS output window:

            ...

            ANSWER

            Answered 2022-Feb-03 at 06:44

            What has worked for us is overriding the SGenToolPath project property manually in the .csproj files

            Add the followings:

            Source https://stackoverflow.com/questions/70770918

            QUESTION

            aspnet-codegenerator error: "path is empty"
            Asked 2022-Jan-20 at 15:49

            I'm attempting to scaffold the Identity pages for a new .NET 6.0 project (created from the ASP.NET Core MVC template). When I run the following command I get the error "path is empty" (I also included the build command output to show the project builds successfully).

            ...

            ANSWER

            Answered 2022-Jan-20 at 15:49

            As mentioned by the comment on the question and on this site

            https://github.com/dotnet/Scaffolding/issues/1713

            Removing the nuget package Microsoft.AspNetCore.Identity from all projects in the relevant solution solves the problem.

            In many cases (also in mine) its enough to reference the nuget package Microsoft.AspNetCore.Identity.EntityFrameworkCore

            Source https://stackoverflow.com/questions/70119631

            QUESTION

            Azure DevOps Build pipeline `npm install` failing on node-gyp
            Asked 2021-Dec-20 at 12:31

            We have a CD/CI Azure Devops build pipeline that has started failing for nodejs/node-gyp.

            • error gyp info using node-gyp@3.8.0
            • error gyp info using node@16.13.0 | win32 | x64

            Nothing about our build pipeline has changed, the pool we use is:

            ...

            ANSWER

            Answered 2021-Dec-13 at 09:42

            Azure auto updated the version of node it was using, pushing the required version of node-gyp forward too, this lead to all of our builds failing. The versions it pushed to were:

            • npm@8.1.0
            • node@v16.13.0

            Add task: NodeTool@0 to set the Node version to the last passed version which for us was:

            • npm@6.14.15
            • node@14.18.1

            The end code looks like this:

            Source https://stackoverflow.com/questions/70332595

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install msbuild

            The current development branch is main. Changes in main will go into a future update of MSBuild, which will release with Visual Studio 17.2 and a corresponding version of the .NET Core SDK. We have forked for MSBuild 17.1 in the branch vs17.1. Changes to that branch need special approval. 17.0 builds from the branch vs17.0. Only high-priority bugfixes will be considered for servicing 17.0. 16.11 builds from the branch vs16.11. Only high-priority bugfixes will be considered for servicing 16.11. MSBuild 16.9 builds from the branch vs16.9. Only high-priority bugfixes will be considered for servicing 16.9. MSBuild 16.7 builds from the branch vs16.7. Only high-priority bugfixes will be considered for servicing 16.7. MSBuild 15.9 builds from the branch vs15.9. Only very-high-priority bugfixes will be considered for servicing 15.9.

            Support

            Before you contribute, please read through the contributing and developer guides to get an idea of what kinds of pull requests we accept.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link