Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Don';我不知道在c#项目中插入公共令牌密钥需要编辑什么文件_C#_.net_Vb.net_Visual Studio_Token - Fatal编程技术网

Don';我不知道在c#项目中插入公共令牌密钥需要编辑什么文件

Don';我不知道在c#项目中插入公共令牌密钥需要编辑什么文件,c#,.net,vb.net,visual-studio,token,C#,.net,Vb.net,Visual Studio,Token,我正在尝试运行从sourceforge下载的。我七次收到相同的错误,当我导入项目时,它说它需要公共令牌文件: \Eraser.Util.csproj : error : Can't find the file or asembled Microsoft.Build, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or its dependencies. System cannot find specifi

我正在尝试运行从sourceforge下载的。我七次收到相同的错误,当我导入项目时,它说它需要公共令牌文件:

\Eraser.Util.csproj : error  : Can't find the file or asembled Microsoft.Build, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or its dependencies. System cannot find specified file.


在谷歌搜索之后,我发现在一个web应用程序中,解决这个问题的方法是编辑web.config并在其中添加公共令牌密钥。我一直在寻找我的项目,没有这样的文件,我需要添加这个公共令牌密钥,以便能够运行这个项目。如有任何帮助,我们将不胜感激。

请详细说明:您使用了什么来创建该项目?你是如何引用dll或类似的东西的?这是一个从sourceforge.net下载的项目。我已经在visual studio 2012 Professional中导入了它,因为我尝试了2013 2015,但还有其他错误。。。所以我已经加载了这个,现在它看起来可以工作了,除了我需要公共令牌密钥。我一直在用谷歌搜索,在一个web应用程序中,必须编辑web.config文件才能添加令牌密钥。在这种情况下,我认为这是一个问题,编辑一个dll文件,但不知道我必须编辑哪一个。你不编辑一个dll-一个dll是一个动态链接库。你只需要确保它是你项目中的参考。