[英]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.