简体   繁体   English

如何从 Visual Studio 2019 中的 Winforms C# 项目中删除或卸载 Avalonia

[英]How can I delete or uninstall Avalonia from Winforms C# Project in Visual Studio 2019

I had installed Avalonia from nuget but did not use it so now I want to remove it from my project.我已经从 nuget 安装了 Avalonia,但没有使用它,所以现在我想将它从我的项目中删除。

What i tried:我尝试了什么:

  • I Tried uninstalling from Nuget Package manager.我尝试从 Nuget Package 管理器卸载。

    -> But What happens when i click uninstall is Just a prompt to confirm then when i click OK Some messages are printed in the console telling it is being uninstalled but then nothing changes.(I remains installed) -> 但是当我单击卸载时会发生什么只是提示确认然后当我单击确定时在控制台中打印一些消息,告诉它正在卸载但没有任何变化。(我仍然安装)

  • As suggested by another answer I tried modifying the packages.config but no effect either.(Visual Studio Tells to Restore the missing packages!)正如另一个答案所建议的那样,我尝试修改 packages.config 但也没有效果。(Visual Studio 告诉恢复丢失的包!)

How can i remove it?我怎样才能删除它?

You can edit csproj file and managed.targets file, then remove the PackageReference section.您可以编辑 csproj 文件和 managed.targets 文件,然后删除PackageReference部分。

  <ItemGroup>
    ...
    <PackageReference Include="Avalonia" Version="X.X.X" />
    ...  
  </ItemGroup>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Visual Studio 2005 或 2019 中为 .NET Framework 2.0 编译一个简单的 WinForms C# 应用程序? - How do I compile a simple WinForms C# application for .NET Framework 2.0 in Visual Studio 2005 or 2019? C# 如何使用 Visual Studio 2019 以编程方式启动项目实例 - C# how to programmatically launch an instance of a project with Visual Studio 2019 如何删除Visual Studio C#Express中的代码段? - How can I delete a snippet in Visual Studio C# Express? 如何在 Visual Studio 2019 中选择 Visual C# class 模板? - How can I choose a Visual C# class template in Visual Studio 2019? 如何通过 Avalonia 0.8.3 在 Visual Studio 2019 中成功使用 DataGrid 控件 - How to sucessfully use a DataGrid control in Visual Studio 2019 with Avalonia 0.8.3 如何在 Visual Studio 2019 中更改 C# 版本 - How do I change the C# version in Visual Studio 2019 如何在 Visual Studio 2019 中从 C# 连接到 SQL 服务器 - How to connect to SQL Server from C# in Visual Studio 2019 如何使用 Visual Studio C# WinForms 中的变量创建 Unicode 字符串? - How can I create a Unicode string using variables in Visual Studio C# WinForms? 如何才能逐渐且平滑地更改PictureBox的大小? (在Winforms中,C#,Visual Studio 2013) - How can I change PictureBox size incrementally and smoothly ? ( in winforms , c# , visual studio 2013 ) 如何构建 RDKits C# Wrappers — Visual Studio 2019 x64 - How can I build RDKits C# Wrappers — Visual Studio 2019 x64
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM