无法修改源自导入文件的评估对象 [英] Cannot modify an evaluated object originating in an imported file

查看:256
本文介绍了无法修改源自导入文件的评估对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从我的Visual Studio项目中删除文件,但是此对话框弹出并阻止我这样做.这是什么意思,我该如何解决?

I am trying to delete a file from my visual studio project, but this dialogue pops up and prevent me from doing that. What does it mean and how do I resolve this problem?

有一个关于此的xamarin线程,但那里没有解决方案.

There is a xamarin thread about this but no solution there.

https://forums.xamarin.com/discussion/25719/cannot-modify-an-evaluated-object-originating-in-an-imported文件中

推荐答案

我们不知道真正的问题是什么,但我们通过将该项目与我们拥有的其他一些项目文件进行比较,确实找到了解决方法.

We have no idea what the real problem is, but we do find a fix by comparing this project with some other project files that we have.

解决方法是在文本编辑器中打开.Shared.vcxitems文件并替换为:

The fix is to open the .Shared.vcxitems file in an text editor and replace this:

  <ItemGroup>
    <ProjectCapability Include="$(MSBuildThisFileDirectory)SourceItemsFromImports" />
  </ItemGroup>

与此

  <ItemGroup>
    <ProjectCapability Include="SourceItemsFromImports" />
  </ItemGroup>

这篇关于无法修改源自导入文件的评估对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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