如何修复这些警告我没有使用它抱怨的内容。 [英] How do I fix these warnings I am not using what it is complaining about.

查看:76
本文介绍了如何修复这些警告我没有使用它抱怨的内容。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个通用的函数库和WPF工具,


这个库使用了正在加载NuGet的xceed.WPF.Toolkit。


Ho 对于NuGet加载的东西,我收到以下警告,但我很热衷。


<我是否删除了以下警告?


---


C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5)

C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5):警告MSB3245:无法解析此引用。无法找到程序集"Xceed.Wpf.AvalonDock,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 3e4669d2f30244f4,
processorArchitecture = MSIL"。检查以确保磁盘上存在程序集。如果您的代码需要此引用,则可能会出现编译错误。


C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common。 CurrentVersion.targets(1820,5)

C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5):警告MSB3245:无法解析此引用。无法找到程序集"Xceed.Wpf.AvalonDock.Themes.Aero,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 3e4669d2f30244f4,
processorArchitecture = MSIL"。检查以确保磁盘上存在程序集。如果您的代码需要此引用,则可能会出现编译错误。


C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common。 CurrentVersion.targets(1820,5)

C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5):警告MSB3245:无法解析此引用。无法找到程序集"Xceed.Wpf.AvalonDock.Themes.Metro,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 3e4669d2f30244f4,
processorArchitecture = MSIL"。检查以确保磁盘上存在程序集。如果您的代码需要此引用,则可能会出现编译错误。


C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common。 CurrentVersion.targets(1820,5)

C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5):警告MSB3245:无法解析此引用。无法找到程序集"Xceed.Wpf.AvalonDock.Themes.VS2010,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 3e4669d2f30244f4,
processorArchitecture = MSIL"。检查以确保磁盘上存在程序集。如果您的代码需要此引用,则可能会出现编译错误。


C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common。 CurrentVersion.targets(1820,5)

C:\Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5):警告MSB3245:无法解析此引用。无法找到程序集"Xceed.Wpf.DataGrid,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 3e4669d2f30244f4,
processorArchitecture = MSIL"。检查以确保磁盘上存在程序集。如果您的代码需要此引用,则可能会出现编译错误。




C:\Program
Files(x86)\ MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5)

解决方案

您好jlr23963,



感谢您发布此处。



您能否告诉我您是否在TFS中使用了Vnext Build或XAML?如果在TFS上构建失败,如果您直接在visual studio中构建项目或使用MSBuild命令行来构建项目,是否仍会发生此问题?如果你使用Vnext build,
请确保在Visual Studio Build任务之前使用Nuget Installer步骤恢复nuget包:


https://www.visualstudio.com/en-us/docs/build/steps/package/nuget-installer



最好的问候


Limitxiao Gao


I am attempting to build a common library of functions and WPF tools,

This library uses xceed.WPF.Toolkit that is being loaded with NuGet.

HoI am getting the following warning for things NuGet loaded but I am hot using.

w do I get rid of the following warnings?

---

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (1820, 5)
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Xceed.Wpf.AvalonDock, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (1820, 5)
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Xceed.Wpf.AvalonDock.Themes.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (1820, 5)
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Xceed.Wpf.AvalonDock.Themes.Metro, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (1820, 5)
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Xceed.Wpf.AvalonDock.Themes.VS2010, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (1820, 5)
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Xceed.Wpf.DataGrid, Version=3.0.0.0, Culture=neutral, PublicKeyToken=3e4669d2f30244f4, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets (1820, 5)

解决方案

Hi jlr23963,

Thank you for posting here.

Could you please tell me did you use Vnext Build or XAML build in TFS? If the build failed on TFS, if you build the project in visual studio directly or use the MSBuild command line to build the project, did this issue still happen? If you used Vnext build, please make sure you used the Nuget Installer step to restore the nuget package before the Visual Studio Build task:

https://www.visualstudio.com/en-us/docs/build/steps/package/nuget-installer

Best Regards

Limitxiao Gao


这篇关于如何修复这些警告我没有使用它抱怨的内容。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆