分类: Windows

Troubleshooting MSBuild Publish Issues on Servers with Visual Studio Build Tools

Introduction

When deploying .NET Framework web applications (such as those using Sitecore Helix) on a production or build server, you might encounter a frustrating issue: MSBuild runs successfully with 0 errors, but no files are output to the specified publish directory. This problem often arises when using the minimal Visual Studio Build Tools installation, as opposed to a full Visual Studio IDE setup on a development machine. In this blog post, I'll walk through the symptoms, root cause, and step-by-step resolution based on a real-world scenario. This guide assumes you're working with a .NET Framework 4.8 web project and MSBuild commands for publishing to a file system.

The goal is to make your build server "publish-ready" without installing the full Visual Studio IDE, which is unnecessary (and resource-heavy) on servers.

Symptoms of the Issue

  • MSBuild Command Execution: You run a command like this:
    MSBuild.exe "C:\path\to\YourProject.csproj" /restore /p:Configuration=debug /p:DeployOnBuild=True /p:PublishProfile=Local /p:WebPublishMethod=FileSystem /p:PublishUrl="C:\path\to\publish\folder" /p:TransformConfigFiles=true /p:IncludeSetAclProviderOnDestination=False /v:detailed
    • It completes with 0 errors (possibly many warnings, e.g., 429 in some cases).
    • Logs show property reassignments, framework path searches, and successful builds of dependencies, but no mention of actual publishing (e.g., no execution of WebPublish targets).

继续阅读

Installing Windows 7 Desktop Gadgets and System Monitor II on Windows 11

References

https://www.majorgeeks.com/files/details/system_monitor_ii.html
https://winaero.com/windows-7-desktop-gadgets-for-windows-11/
https://web.archive.org/web/20220427233938/https://winaero.com/windows-7-desktop-gadgets-for-windows-11/

Windows 7 Desktop Gadgets were a beloved feature for many users, offering quick access to tools like calendars, clocks, and system monitors. While Microsoft removed this feature starting with Windows 8, you can bring these gadgets back to Windows 11 using the Gadgets Revived package and enhance your desktop with additional tools like System Monitor II. This blog post walks you through the process of installing Windows 7 Desktop Gadgets and the System Monitor II gadget on Windows 11.

Prerequisites

  • A Windows 11 PC (e.g., running build 22H2 or later).
  • Internet access to download the required files.
  • Administrative privileges to install software.

继续阅读

Viagle Blog

欢迎来到我的个人博客网站