小编Asi*_*ood的帖子

无法在虚拟机上找到ubuntu-13中的软件包virtualenv

当我尝试执行下面给出的代码时:"sudo apt-get install virtualenv"为响应ubuntu-shell而给出的错误是:

E:无法找到包virtualenv

python ubuntu-13.10

4
推荐指数
4
解决办法
1万
查看次数

Assembly.GetManifestResourceStream始终返回null

每当我完成任务时,它总是让我感到困惑Path-Resolution.我有关于报告问题的以下信息:

  • 运用 ASP.NET MVC-5 Application
  • 试图通过下面的代码访问font fileieMyriadPro-SemiBold.ttf
//a value receives a path + name of the file in variable i.e. name
string name = "myApplicationName.fonts.MyriadPro-Semibold.ttf";

//object (named as assembly) of class System.Reflection.Assembly. 
var assembly = Assembly.GetExecutingAssembly();

using (Stream stream = assembly.GetManifestResourceStream(name))
// stream always gets null value (don't know why!)
{
    if(stream != null)
    {
        //myCode waiting for above stream not to be null :-(
    }
    else
    {
        throw new ArgumentException("No resource with name " …
Run Code Online (Sandbox Code Playgroud)

c# resources .net-assembly asp.net-mvc-5

3
推荐指数
1
解决办法
4159
查看次数