lijunle / Vsxmd

VS XML documentation -> Markdown syntax.
MIT License
215 stars 51 forks source link

Latest build results in .NET Core dependency for .NET Standard libraries #82

Open kphaldeman opened 4 years ago

kphaldeman commented 4 years ago

When I updated my Nuget packages for my project recently, Vsxmd was updated as well. After the update, I could not rebuild my project, having the following exception raised:

An assembly specified in the application dependencies manifest (Vsxmd.deps.json) was not found: 1> package: 'runtimepack.Microsoft.NETCore.App.Runtime.win-x64', version: '3.1.1' 1> path: 'System.Net.WebHeaderCollection.dll'

My project is a console application targeting .NET Framework 4.7.2

lijunle commented 4 years ago

Hmm... Which version of Vsxmd are you using?

kphaldeman commented 4 years ago

This was with the latest version.  I had to go back 2 versions to get it working correctly.

On Thursday, April 9, 2020, 1:40:48 PM CDT, Junle Li <notifications@github.com> wrote:  

Hmm... Which version of Vsxmd are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Euan-McVie commented 4 years ago

We have a similar issue with 1.4.5 on some developers machines (but not all):

An assembly specified in the application dependencies manifest (Vsxmd.deps.json) was not found: package: 'runtimepack.Microsoft.NETCore.App.Runtime.win-x64', version: '3.1.1' path: 'Microsoft.Win32.Primitives.dll'

The project is multi-targeting net461;netcoreapp3.1

Downgrading to 1.4.4 seems to solve it though.

mjasin commented 3 years ago

I have this same issue for netcoreapp3.1. After downgrade to 1.4.4 problem is solve.

cars10w commented 3 years ago

Same as @mjasin here.

TomGibsonCS commented 3 years ago

Also same issue in our code with same 1.4.5, 1.4.4 fixes it.

saephraim commented 3 years ago

I am also experiencing this error with 1.4.5 when building my project. Rollback to 1.4.4 does resolve it.

1>blahblah -> C:\Users\EphraSA\source\repos\blahblah\blahblah\bin\Debug\netstandard2.1\blahblah.dll
1>EXEC : error :
1>  An assembly specified in the application dependencies manifest (Vsxmd.deps.json) was not found:
1>    package: 'runtimepack.Microsoft.NETCore.App.Runtime.win-x64', version: '3.1.1'
1>    path: 'Microsoft.Win32.Primitives.dll'
1>C:\Users\EphraSA\.nuget\packages\vsxmd\1.4.5\build\Vsxmd.targets(17,5): error MSB3073: The command ""C:\Users\EphraSA\.nuget\packages\vsxmd\1.4.5\build\/../tools/win-x64/Vsxmd.exe" "C:\Users\EphraSA\source\repos\blahblah\blahblah\blahblah.xml" "C:\Users\EphraSA\source\repos\blahblah\blahblah\..\blahblah.md" """ exited with code -2147450740.
1>Done building project "blahblah.csproj" -- FAILED.
DctrDstr commented 3 years ago

I am also experiencing this error with 1.4.5 when building my project. Rollback to 1.4.4 does resolve it.

1>blahblah -> C:\Users\EphraSA\source\repos\blahblah\blahblah\bin\Debug\netstandard2.1\blahblah.dll
1>EXEC : error :
1>  An assembly specified in the application dependencies manifest (Vsxmd.deps.json) was not found:
1>    package: 'runtimepack.Microsoft.NETCore.App.Runtime.win-x64', version: '3.1.1'
1>    path: 'Microsoft.Win32.Primitives.dll'
1>C:\Users\EphraSA\.nuget\packages\vsxmd\1.4.5\build\Vsxmd.targets(17,5): error MSB3073: The command ""C:\Users\EphraSA\.nuget\packages\vsxmd\1.4.5\build\/../tools/win-x64/Vsxmd.exe" "C:\Users\EphraSA\source\repos\blahblah\blahblah\blahblah.xml" "C:\Users\EphraSA\source\repos\blahblah\blahblah\..\blahblah.md" """ exited with code -2147450740.
1>Done building project "blahblah.csproj" -- FAILED.

Same Issue in 1.4.5 solved to downgrade to 1.4.4

astrohart commented 3 years ago

Me too.

Error:
  An assembly specified in the application dependencies manifest (Vsxmd.deps.json) was not found:
    package: 'runtimepack.Microsoft.NETCore.App.Runtime.win-x64', version: '3.1.1'
    path: 'Microsoft.Win32.Primitives.dll'

Although some confusion stems from reading the prior comments about downgrading to 1.4.4. Namely, I've been using 1.4.5 all this time and it only recently (as of 1-3 days ago) broke with this error.

I tried downloading and installing the latest .NET Core SDK on my computer, from: https://download.visualstudio.microsoft.com/download/pr/046165a4-10d4-4156-8e65-1d7b2cbd304e/a4c7b01f6bf7199669a45ab6a03803ac/dotnet-sdk-3.1.412-win-x64.exe

Then I rebooted the computer and I attempted to run Vsxmd.exe again, and I got the same error.

Brian Hart

astrohart commented 3 years ago

@lijunle I think the developer of Vsxmd needs to do a Install-Package Microsoft.Win32.Primitives and then rebuild.

astrohart commented 3 years ago

@lijunle I just now am downloiading the .NET Core Desktop Runtime 3.1.18 from the website at: https://download.visualstudio.microsoft.com/download/pr/aa240732-82d7-4bd1-9701-e4014d7dc735/41a460f5e9c343f7b9207f64ab0e4c90/windowsdesktop-runtime-3.1.18-win-x64.exe

I am going to install and see if that fixes this error.

UPDATE: No, it did not fix the error.

astrohart commented 3 years ago

The next thing I tried was to delete the packages folder and then do a Update-Package -Reinstall in the Package Manager Console window of Visual Studio.

Output:

Each package is licensed to you by its owner. NuGet is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.

Package Manager Console Host Version 5.10.0.7240

Type 'get-help NuGet' to see all available NuGet commands.

PM> Update-Package -Reinstall

Attempting to gather dependency information for multiple packages with respect to project 'xyLOGIX.Core.Debug', targeting '.NETFramework,Version=v4.8'
Gathering dependency information took 2.62 sec
Attempting to resolve dependencies for multiple packages.
Resolving dependency information took 0 ms
Resolving actions install multiple packages
Retrieving package 'AlphaFS 2.2.6' from 'nuget.org'.
Retrieving package 'log4net 2.0.12' from 'nuget.org'.
Retrieving package 'Newtonsoft.Json 13.0.1' from 'nuget.org'.
Retrieving package 'PostSharp 6.9.8' from 'nuget.org'.
Retrieving package 'PostSharp.Patterns.Common 6.9.8' from 'nuget.org'.
Retrieving package 'PostSharp.Patterns.Common.Redist 6.9.8' from 'nuget.org'.
Retrieving package 'PostSharp.Patterns.Diagnostics 6.9.8' from 'nuget.org'.
Retrieving package 'PostSharp.Patterns.Diagnostics.Log4Net 6.9.8' from 'nuget.org'.
Retrieving package 'PostSharp.Patterns.Diagnostics.Redist 6.9.8' from 'nuget.org'.
Retrieving package 'PostSharp.Redist 6.9.8' from 'nuget.org'.
Retrieving package 'Vsxmd 1.4.5' from 'nuget.org'.
Removed package 'Vsxmd 1.4.5' from 'packages.config'
Successfully uninstalled 'Vsxmd 1.4.5' from xyLOGIX.Core.Debug
Removed package 'PostSharp.Patterns.Diagnostics.Log4Net 6.9.8' from 'packages.config'
Successfully uninstalled 'PostSharp.Patterns.Diagnostics.Log4Net 6.9.8' from xyLOGIX.Core.Debug
Removed package 'PostSharp.Patterns.Diagnostics 6.9.8' from 'packages.config'
Successfully uninstalled 'PostSharp.Patterns.Diagnostics 6.9.8' from xyLOGIX.Core.Debug
Removed package 'PostSharp.Patterns.Diagnostics.Redist 6.9.8' from 'packages.config'
Successfully uninstalled 'PostSharp.Patterns.Diagnostics.Redist 6.9.8' from xyLOGIX.Core.Debug
Removed package 'PostSharp.Patterns.Common 6.9.8' from 'packages.config'
Successfully uninstalled 'PostSharp.Patterns.Common 6.9.8' from xyLOGIX.Core.Debug
Removed package 'PostSharp.Patterns.Common.Redist 6.9.8' from 'packages.config'
Successfully uninstalled 'PostSharp.Patterns.Common.Redist 6.9.8' from xyLOGIX.Core.Debug
Removed package 'PostSharp 6.9.8' from 'packages.config'
Successfully uninstalled 'PostSharp 6.9.8' from xyLOGIX.Core.Debug
Removed package 'PostSharp.Redist 6.9.8' from 'packages.config'
Successfully uninstalled 'PostSharp.Redist 6.9.8' from xyLOGIX.Core.Debug
Removed package 'Newtonsoft.Json 13.0.1' from 'packages.config'
Successfully uninstalled 'Newtonsoft.Json 13.0.1' from xyLOGIX.Core.Debug
Removed package 'log4net 2.0.12' from 'packages.config'
Successfully uninstalled 'log4net 2.0.12' from xyLOGIX.Core.Debug
Removed package 'AlphaFS 2.2.6' from 'packages.config'
Successfully uninstalled 'AlphaFS 2.2.6' from xyLOGIX.Core.Debug
Package 'AlphaFS.2.2.6' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'AlphaFS.2.2.6' to 'packages.config'
Successfully installed 'AlphaFS 2.2.6' to xyLOGIX.Core.Debug
Package 'log4net.2.0.12' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'log4net.2.0.12' to 'packages.config'
Successfully installed 'log4net 2.0.12' to xyLOGIX.Core.Debug
Package 'Newtonsoft.Json.13.0.1' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'Newtonsoft.Json.13.0.1' to 'packages.config'
Successfully installed 'Newtonsoft.Json 13.0.1' to xyLOGIX.Core.Debug
Package 'PostSharp.Redist.6.9.8' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'PostSharp.Redist.6.9.8' to 'packages.config'
Successfully installed 'PostSharp.Redist 6.9.8' to xyLOGIX.Core.Debug
Package 'PostSharp.6.9.8' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'PostSharp.6.9.8' to 'packages.config'
Successfully installed 'PostSharp 6.9.8' to xyLOGIX.Core.Debug
Package 'PostSharp.Patterns.Common.Redist.6.9.8' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'PostSharp.Patterns.Common.Redist.6.9.8' to 'packages.config'
Successfully installed 'PostSharp.Patterns.Common.Redist 6.9.8' to xyLOGIX.Core.Debug
Package 'PostSharp.Patterns.Common.6.9.8' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'PostSharp.Patterns.Common.6.9.8' to 'packages.config'
Successfully installed 'PostSharp.Patterns.Common 6.9.8' to xyLOGIX.Core.Debug
Package 'PostSharp.Patterns.Diagnostics.Redist.6.9.8' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'PostSharp.Patterns.Diagnostics.Redist.6.9.8' to 'packages.config'
Successfully installed 'PostSharp.Patterns.Diagnostics.Redist 6.9.8' to xyLOGIX.Core.Debug
Package 'PostSharp.Patterns.Diagnostics.6.9.8' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'PostSharp.Patterns.Diagnostics.6.9.8' to 'packages.config'
Successfully installed 'PostSharp.Patterns.Diagnostics 6.9.8' to xyLOGIX.Core.Debug
Package 'PostSharp.Patterns.Diagnostics.Log4Net.6.9.8' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'PostSharp.Patterns.Diagnostics.Log4Net.6.9.8' to 'packages.config'
Successfully installed 'PostSharp.Patterns.Diagnostics.Log4Net 6.9.8' to xyLOGIX.Core.Debug
Package 'Vsxmd.1.4.5' already exists in folder 'F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages'
Added package 'Vsxmd.1.4.5' to 'packages.config'
Successfully installed 'Vsxmd 1.4.5' to xyLOGIX.Core.Debug
Executing nuget actions took 6.03 sec
Time Elapsed: 00:00:08.9594560
PM> 

My packages.config file is:

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="AlphaFS" version="2.2.6" targetFramework="net48" />
  <package id="log4net" version="2.0.12" targetFramework="net48" />
  <package id="Newtonsoft.Json" version="13.0.1" targetFramework="net48" />
  <package id="PostSharp" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Common" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Common.Redist" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Diagnostics" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Diagnostics.Log4Net" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Diagnostics.Redist" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Redist" version="6.9.8" targetFramework="net48" />
  <package id="Vsxmd" version="1.4.5" targetFramework="net48" developmentDependency="true" />
</packages>

Next, I "permanently deleted" the bin\ and obj\ folders in my solution and then rebuilt:

Build started...
1>------ Build started: Project: xyLOGIX.Core.Debug, Configuration: Debug x64 ------
1>  xyLOGIX.Core.Debug -> F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\xyLOGIX.Core.Debug\bin\x64\Debug\xyLOGIX.Core.Debug.dll
1>EXEC : error : 
1>    An assembly specified in the application dependencies manifest (Vsxmd.deps.json) was not found:
1>      package: 'runtimepack.Microsoft.NETCore.App.Runtime.win-x64', version: '3.1.1'
1>      path: 'Microsoft.Win32.Primitives.dll'
1>F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages\Vsxmd.1.4.5\build\Vsxmd.targets(17,5): error MSB3073: The command ""F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages\Vsxmd.1.4.5\build\/../tools/win-x64/Vsxmd.exe" "bin\x64\Debug\xyLOGIX.Core.Debug.xml" "" """ exited with code -2147450740.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I am still getting the error. This is a MAJOR show stopper for me. I like Vsxmd so much that it's built in to pretty much every project I have.

astrohart commented 3 years ago

Now I am trying to change the version of Vsxmd to 1.4.4:

packages.config says:

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="AlphaFS" version="2.2.6" targetFramework="net48" />
  <package id="log4net" version="2.0.12" targetFramework="net48" />
  <package id="Newtonsoft.Json" version="13.0.1" targetFramework="net48" />
  <package id="PostSharp" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Common" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Common.Redist" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Diagnostics" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Diagnostics.Log4Net" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Patterns.Diagnostics.Redist" version="6.9.8" targetFramework="net48" />
  <package id="PostSharp.Redist" version="6.9.8" targetFramework="net48" />
  <package id="Vsxmd" version="1.4.4" targetFramework="net48" developmentDependency="true" />
</packages>

I then delete the packages folder in File Explorer and then do a Restore NuGet Packages in Solution action, and then do a "Build":

Build started...
1>------ Build started: Project: xyLOGIX.Core.Debug, Configuration: Debug x64 ------
1>  xyLOGIX.Core.Debug -> F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\xyLOGIX.Core.Debug\bin\x64\Debug\xyLOGIX.Core.Debug.dll
1>EXEC : error : 
1>    An assembly specified in the application dependencies manifest (Vsxmd.deps.json) was not found:
1>      package: 'runtimepack.Microsoft.NETCore.App.Runtime.win-x64', version: '3.1.1'
1>      path: 'Microsoft.Win32.Primitives.dll'
1>F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages\Vsxmd.1.4.5\build\Vsxmd.targets(17,5): error MSB3073: The command ""F:\Personal\Dropbox\Documents\Visual Studio 2019\Projects\xyLOGIX\Libraries\xyLOGIX.Core.Debug.VS2019\packages\Vsxmd.1.4.5\build\/../tools/win-x64/Vsxmd.exe" "bin\x64\Debug\xyLOGIX.Core.Debug.xml" "" """ exited with code -2147450740.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Build STILL failed!

The version of Visual Studio that is in use is:

Microsoft Visual Studio Community 2019
Version 16.10.3
VisualStudio.16.Release/16.10.3+31424.327
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Community

.NET Core Debugging with WSL 2   1.0
.NET Core Debugging with WSL 2

ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools

ASA Service Provider   1.0

ASP.NET and Web Tools 2019   16.10.526.50910
ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019   16.10.526.50910
For additional information, visit https://www.asp.net/

Attach Toolbar   1.1
Attach Toolbar

Azure App Service Tools v3.0.0   16.10.526.50910
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.6.3000.0
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools   16.10.526.50910
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio   2.6.3000.0
Microsoft Azure Stream Analytics Tools for Visual Studio

BruteCleanCommand Extension   1.0
BruteCleanCommand Visual Studio Extension Detailed Info

C# Tools   3.10.0-4.21318.11+7ceb633154acb9d716fd3eb2b6df1a0468d8e416
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CodeMaid   11.2.231
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

Command Extension   1.0
Command Visual Studio Extension Detailed Info

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub.VisualStudio   2.11.106.19330
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

GuidGenPackage   1.0
Offers the new GuidGen tool in the VS Tools menu.

IntelliCode Extension   1.0
IntelliCode Visual Studio Extension Detailed Info

JetBrains ReSharper 2021.1.3   Build 211.0.20210525.202743
JetBrains ReSharper package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper. Copyright © 2021 JetBrains, Inc.

Markdown Editor   1.12.253
A full featured Markdown editor with live preview and syntax highlighting. Supports GitHub flavored Markdown.

Microsoft Azure HDInsight Azure Node   2.6.3000.0
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.6.3000.0
Language service for Hive query

Microsoft Azure Stream Analytics Language Service   2.6.3000.0
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.40423.1

Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager   2.1.113+g422d40002e.RR
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio Tools for Containers   1.2
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

New Temporary Project   1.0
Adds a `File > New > Temp Project...` command.

NuGet Package Manager   5.10.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

NuGetReferenceSwitcher   1.0
Information about my package

OpenBinFolderPackage Extension   1.0
OpenBinFolderPackage Visual Studio Extension Detailed Info

PostSharp Tools for Visual Studio   6.9.8.0
PostSharp is the #1 pattern-aware extension to C# and VB.

Productivity Power Tools 2017/2019   16.0
Installs the individual extensions of Productivity Power Tools 2017/2019

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Razor (ASP.NET Core)   16.1.0.2122504+13c05c96ea6bdbe550bd88b0bf6cdddf8cde1725
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools   16.0.62106.24090
Microsoft SQL Server Data Tools

SQLite & SQL Server Compact Toolbox   4.8
SQLite & SQL Server Compact Toolbox adds scripting, import, export, rename, query execution and much more to SQL Server Compact & SQLite Data Connections.

ToolWindow1 Extension   1.0
ToolWindow1 Visual Studio Extension Detailed Info

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript Tools   16.0.30429.2002
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   3.10.0-4.21318.11+7ceb633154acb9d716fd3eb2b6df1a0468d8e416
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools   16.10.0-beta.21262.7+1b23bbeda88ea3cb9be9af777f4c99fa8663df81
Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Container Tools Extensions   1.0
View, manage, and diagnose containers within Visual Studio.

Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers

I am attaching an export from the Visual Studio Installer of my installed workloads/components: VS2019-community.vsconfig.txt

astrohart commented 3 years ago

Now I am going to do a copy of the info from the Help -> About box of a copy of VS 2019 Enterprise (with EVERY workload/component installed) that I am using on a VM, where my code builds perfectly (no Vsxmd.exe error):

Microsoft Visual Studio Enterprise 2019
Version 16.10.3
VisualStudio.16.Release/16.10.3+31424.327
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools   00433-90000-00004-AA248
Microsoft Architecture Diagrams and Analysis Tools

Visual C++ 2019   00433-90000-00004-AA248
Microsoft Visual C++ 2019

Add Multiple Projects To Solution   1.2.0
Visual Studio extension that allows adding multiple existing projects into the solution. Optionally creates the solution folder structure reflecting to the physical hierarchy on disk.

ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools

ASA Service Provider   1.0

ASP.NET and Web Tools 2019   16.10.526.50910
ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019   16.10.526.50910
For additional information, visit https://www.asp.net/

Attach Toolbar   1.1
Attach Toolbar

Azure App Service Tools v3.0.0   16.10.526.50910
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.6.3000.0
Microsoft Azure Data Lake Tools for Visual Studio

Azure Stream Analytics Tools for Visual Studio   2.6.3000.0
Microsoft Azure Stream Analytics Tools for Visual Studio

BruteCleanCommand Extension   1.0
BruteCleanCommand Visual Studio Extension Detailed Info

C# Tools   3.10.0-4.21318.11+7ceb633154acb9d716fd3eb2b6df1a0468d8e416
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CodeMaid   11.2.231
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

Command Extension   1.0
Command Visual Studio Extension Detailed Info

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Dotfuscator Community Edition   6.3.0+8b29d6f4a2
PreEmptive Protection - Dotfuscator CE

GitHub.VisualStudio   2.11.106.19330
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

GuidGenPackage   1.0
Offers the new GuidGen tool in the VS Tools menu.

IntelliCode Extension   1.0
IntelliCode Visual Studio Extension Detailed Info

JetBrains ReSharper 2021.1.5   Build 211.0.20210722.90948
JetBrains ReSharper package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper. Copyright © 2021 JetBrains, Inc.

Microsoft Azure HDInsight Azure Node   2.6.3000.0
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.6.3000.0
Language service for Hive query

Microsoft Azure Stream Analytics Language Service   2.6.3000.0
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.40423.1

Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager   2.1.113+g422d40002e.RR
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers   1.2
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

New Temporary Project   1.0
Adds a `File > New > Temp Project...` command.

NuGet Package Manager   5.10.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

NuGetReferenceSwitcher   1.0
Information about my package

Office Developer Tools for Visual Studio   16.0.31130.00
Microsoft Office Developer Tools for Visual Studio

OpenBinFolderPackage Extension   1.0
OpenBinFolderPackage Visual Studio Extension Detailed Info

PDFAndOfficeDocumentsViewer   1.0
View PDF, DOC, DOCX  files included in your projects without leaving the Visual Studio IDE.

PostSharp Tools for Visual Studio   6.9.6.0
PostSharp is the #1 pattern-aware extension to C# and VB.

Productivity Power Tools 2017/2019   16.0
Installs the individual extensions of Productivity Power Tools 2017/2019

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Razor (ASP.NET Core)   16.1.0.2122504+13c05c96ea6bdbe550bd88b0bf6cdddf8cde1725
Provides languages services for ASP.NET Core Razor.

RemoveProjectsCommand Extension   1.0
RemoveProjectsCommand Visual Studio Extension Detailed Info

Snapshot Debugging Extension   1.0
Snapshot Debugging Visual Studio Extension Detailed Info

SQL Server Data Tools   16.0.62106.24090
Microsoft SQL Server Data Tools

SQLite & SQL Server Compact Toolbox   4.8
SQLite & SQL Server Compact Toolbox adds scripting, import, export, rename, query execution and much more to SQL Server Compact & SQLite Data Connections.

tangible T4 Editor   2.5.0
tangible engineering GmbH

Test Adapter for Boost.Test   1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test.  The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test   1.0
Enables Visual Studio's testing tools with unit tests written for Google Test.  The use terms and Third Party Notices are available in the extension installation directory.

ToolWindow1 Extension   1.0
ToolWindow1 Visual Studio Extension Detailed Info

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript Tools   16.0.30429.2002
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   3.10.0-4.21318.11+7ceb633154acb9d716fd3eb2b6df1a0468d8e416
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools   16.10.0-beta.21262.7+1b23bbeda88ea3cb9be9af777f4c99fa8663df81
Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Container Tools Extensions   1.0
View, manage, and diagnose containers within Visual Studio.

Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers

WinUI Essentials   1.2
The easiest way to set up Visual Studio for the ultimate WinUI development experience.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Now I am going to do an Export Configuration from the Visual Studio Installer instance running on the machine where the code builds (see attached): VS2019-Enterprise.vsconfig.txt

Remember, the above is from the machine where Vsxmd works fine.

Perhaps do a diff between the VS Enterprise and VS Community files and see if we can spot the config difference.

astrohart commented 3 years ago

@lijunle Continuing to dig into the issue...

I copied the file Microsoft.Win32.Primitives.dll from the Global Assembly Cache (GAC) folder of the remote VM where things build fine.

Then I opened a Developer Command Prompt and did gacutil -i <path> to install it into the GAC on my local box.

VS 2019 still would not build the project.

Using the Rebuild Solution toolbar button in VS 2019 community still produces the error that I first received. But, the error does not appear when I do a build using dotnet build /flp:v=diag command in the project directory, according to this post.

The build worked using that command in a Developer Command Prompt:

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.10.3
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cd /d "%USERPROFILE%\source\repos\astrohart"

C:\Users\Brian Hart\source\repos\astrohart>cd xyLOGIX.Core.Debug.VS2019

C:\Users\Brian Hart\source\repos\astrohart\xyLOGIX.Core.Debug.VS2019>dotnet build /flp:v=diag
Microsoft (R) Build Engine version 16.10.1+2fd48ab73 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  Nothing to do. None of the projects specified contain packages to restore.
C:\Program Files\dotnet\sdk\5.0.301\Microsoft.CSharp.CurrentVersion.targets(130,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\Users\Brian Hart\source\repos\astrohart\xyLOGIX.Core.Debug.VS2019\xyLOGIX.Core.Debug\xyLOGIX.Core.Debug.csproj]
  xyLOGIX.Core.Debug -> C:\Users\Brian Hart\source\repos\astrohart\xyLOGIX.Core.Debug.VS2019\xyLOGIX.Core.Debug\bin\x64\Debug\xyLOGIX.Core.Debug.dll

Build succeeded.

C:\Program Files\dotnet\sdk\5.0.301\Microsoft.CSharp.CurrentVersion.targets(130,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\Users\Brian Hart\source\repos\astrohart\xyLOGIX.Core.Debug.VS2019\xyLOGIX.Core.Debug\xyLOGIX.Core.Debug.csproj]
    1 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.70

C:\Users\Brian Hart\source\repos\astrohart\xyLOGIX.Core.Debug.VS2019>

I am most puzzled by this. Maybe the assembly finally took a while to install into the GAC. I am restarting VS 2019 and will see if things will build now...

And yes! Now it works...

Build started...
1>------ Build started: Project: xyLOGIX.Core.Debug, Configuration: Debug x64 ------
1>  xyLOGIX.Core.Debug -> C:\Users\Brian Hart\source\repos\astrohart\xyLOGIX.Core.Debug.VS2019\xyLOGIX.Core.Debug\bin\x64\Debug\xyLOGIX.Core.Debug.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
nishy2000 commented 2 years ago

@astrohart , @PForever, @lijunle

I encountered the same problem. And I found a solution.

The solution is to delete the following folders %TEMP%.net\Vsxmd* (ex. C:\Users(username)\AppData\Local\Temp.net\Vsxmd*)

This seems to be the location where Vsxmd.exe is extracted, but it may be incompletely extracted. Once incompletely extracted, the problem will continue to occur. Removing this cache solved the problem.

shashankHollaK commented 5 months ago

@astrohart I went through and followed all the steps you had tried and mentioned. Unfortunately it did not resolve the error for me. My case was similar because I too have a secondary workstation and the build is working fine without any errors there. I compared my dotnet SDKs and runtime versions with the workstation. dotnet --list-sdks dotnet --list-runtimes I had many unnecessary versions so I removed them. Then I copied the contents of C:/Temp/.net/vsxmd/azf3hcgs.sox/ from my workstation to local system that finally fixed the error. vsxmd.deps.json is located in this folder.