Visual Studio for Mac:缓存位置 [英] Visual Studio for Mac: Cache Location

查看:711
本文介绍了Visual Studio for Mac:缓存位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有包括我利用MySql.Data包通过LINQ连接到MySql的事实,因为它似乎并不相关.问完问题后,我切换到LinqToDb.MySql包,问题似乎已经消失,所以我认为这是MySql.Data中的错误.

I didn't include the fact that I was leveraging the MySql.Data package to connect to MySql via LINQ, as it didn't seem relevant. After asking the question, I switched to the LinqToDb.MySql package and the problems seems to have disappeared, so I think it was a bug in MySql.Data.

尽管我乐于助人,但我将问题留给我作为解决方案,而对原始问题的解答可能会对其他人有所帮助.

Though I'm good to go, I'm leaving the question up as my solution and an answer to the original question might help someone else.

原始帖子:

我正在Visual Studio Community for Mac(7.1.3)中构建C#解决方案.我已经更改了对数据库表名称的一些引用,但是不断出现诸如以下的错误:

I am building a C# solution in Visual Studio Community for Mac (7.1.3). I've changed some references to database table names, but keep getting errors like:

Table 'database.exampleTable1' doesn't exist.` 

即使我已在整个代码中将对"exampleTable1"的引用更改为"table1",以匹配实时数据库.

even though I've changed the references to "exampleTable1" to "table1" throughout my code in order to match the live database.

我不认为问题出在我的代码中,而是在Visual Studio中无法识别更改.我尝试清空Debug文件夹并重建,从git仓库克隆项目并给它起一个不同的名称(诅咒跟在我后面!),以及其他一些牵强的想法.

I don't think the problem lies within my code, but within Visual Studio not recognizing the change. I've tried emptying out the Debug folder and rebuilding, cloning the project from my git repository and giving it a different name (the curse followed me!), and a few other far-fetched ideas.

此答案似乎有它.它建议清除Visual Studio缓存文件,但仅显示PC到这些文件夹的路径.我在Mac文件系统上找不到任何类似的内容.

This answer seems to have it. It suggests clearing out the Visual Studio cache files, but only shows the path to those folder for a PC. I can't find anything similar on my Mac file system.

在Mac上哪里可以找到与以下内容等效的缓存文件?

C:\Documents and Settings\Administrator\Local Settings\Temp\VWDWebCache

or

C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\WebsiteCache

推荐答案

在Mac上哪里可以找到与以下内容等效的缓存文件?

打开Finder>使用命令'Shift + CMD + G'>输入/粘贴〜/Library/Caches".进入转到文件夹"对话框.完成此操作后,您应该能够看到几乎所有的缓存.因此,编辑需要您自担风险.

Open Finder > use command 'Shift + CMD + G' > type/paste "~/Library/Caches." into the Go-To folder dialog. Once you've done this you should be able to see pretty much all caches. So edit at your own risk.

为您的确切示例:

您可能需要查找(我建议使用finder中的列表视图以便于查看)"VisualStudio"文件夹,将其放下,您应在此处找到所有缓存项目,包括文件夹临时".

You may need to look for (I recommend using the list view in finder for ease of sight) 'VisualStudio' folder, drop it down and you should find all cache items here including the folder 'Temp'.

  • 至于查找"VWDWebCache"或"WebsiteCache",请尝试搜索它们,然后 再次将搜索范围缩小到缓存"文件夹.
  • As for finding 'VWDWebCache' or 'WebsiteCache' try searching them and refining the search to "Caches" folder again.

这篇关于Visual Studio for Mac:缓存位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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