当我们安装SP2时,我们在构建解决方案时开始注意以下事项:
ERROR C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2348,5): Task host node exited prematurely. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt.
ERROR C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2366,7): The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter. Object does not match target type.
Run Code Online (Sandbox Code Playgroud)
然后看一下我看到的MSBuild _*.failure.txt文件之一:
UNHANDLED EXCEPTIONS FROM PROCESS 26072:
=====================
5/20/2014 4:18:22 PM
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.Generic.Dictionary`2.Initialize(Int32 capacity)
at System.Collections.Generic.Dictionary`2..ctor(Int32 capacity, IEqualityComparer`1 comparer)
at Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketReadTranslator.TranslateDictionary(Dictionary`2& dictionary, IEqualityComparer`1 comparer)
at Microsoft.Build.BackEnd.TaskParameter.ReadITaskItem(INodePacketTranslator translator, ITaskItem& wrappedItem)
at Microsoft.Build.BackEnd.TaskParameter.TranslateITaskItemArray(INodePacketTranslator …
Run Code Online (Sandbox Code Playgroud) 我想制作3D游戏,最好是可以在浏览器中播放.有人说搅拌机,有人说团结.各自的优点和缺点是什么?你更倾向哪个?为什么?另外,您对教程有什么建议吗?
我有一个包含多个项目的C#解决方案,其中一个是由IIS运行的Web服务器.我已经设置<UseGlobalApplicationHostFile>True</UseGlobalApplicationHostFile>
了该项目的csproj文件.
当我打开Visual Studio时,它会在〜/ Documents/IISExpress/config/applicationhost.config中生成:
<sites>
<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":8080:localhost" />
</bindings>
</site>
<site name="SealingService" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\sehch\Documents\Paragon\ParagonCore\servers\SealingService\SealingService" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:61800:localhost" />
<binding protocol="https" bindingInformation="*:44300:localhost" />
</bindings>
</site>
<siteDefaults>
<logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" />
<traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" maxLogFileSizeKB="1024" />
</siteDefaults>
<applicationDefaults applicationPool="Clr4IntegratedAppPool" />
<virtualDirectoryDefaults allowSubDirConfig="true" />
</sites>
Run Code Online (Sandbox Code Playgroud)
我希望能够从命令行使用IIS Express运行我的项目(用于构建服务器集成测试目的).如何SealingService
从命令行生成applicationhost.config 的站点部分(无需打开Visual Studio)?
我试过跑步
"C:\Program Files (x86)\IIS Express\iisexpress.exe"
Run Code Online (Sandbox Code Playgroud)
在我的解决方案文件夹中,但它只生成该WebSite1
部分.
在班上(我正在接管其他人的项目),我有以下内容:
using Java.Util;
using Object = Java.Lang.Object;
using Void = Java.Lang.Void;
Run Code Online (Sandbox Code Playgroud)
Void,显示为红色,带有" 无法解析符号'Void' ",无法看到我可能遗漏的内容.
我已经检查了PC的来源(并且应用程序确实构建在那个上)并安装了相同的(是的,我看到的,更新的,但专门安装了"相同"的项目)Java项目:
这没有任何改变.
我检查了项目的'References'分支,一切都显示相同(事实上,我无法在任何地方看到对Java的具体引用)
任何帮助将不胜感激.
请理解我不打算更改代码; 只是为了得到代码(按原样)编译没有错误.
[更新]
当我输入Java.Lang.intellisense不会在下拉列表中显示Void
[进一步更新]
该项目与平板电脑的开发有关; 我没有安装一些开发软件 - 安装它们已经解决了这个问题,我只能假设Java命名空间被隐藏在软件中.虽然回复中没有具体的答案,但大多数评论肯定有助于引导我朝着正确的方向前进.
我们正在开发一个ASP.NET MVC 5项目,它依赖于来自不同解决方案的项目.另一个解决方案是常见的类库,我们将其作为NuGet包发布.当我们发布时,我们编译项目并从NuGet存储库中获取它,但是当我们正在开发时,我们从该项目的bin文件夹中获取引用.
为了实现这一点,我们对ASP.NET项目的csproj文件进行了"hack"(我们手动编辑了csproj xml文件并更改了引用):
<Reference Include="Common.Utilities, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath Condition=" '$(Configuration)' == 'Debug' ">..\..\..\Common\Common.Utilities\bin\$(Configuration)\Common.Utilities.dll</HintPath>
<HintPath Condition=" '$(Configuration)' != 'Debug' ">..\..\..\..\ExtrnBin\NuGetPackages\Common.Utilities.1.0.0.8\lib\net451\Common.Utilities.dll</HintPath>
</Reference>
Run Code Online (Sandbox Code Playgroud)
因此,当我们编译调试时,它从类库项目文件夹中获取,当我们编译发布时,它从下载的NuGet中获取.这对于快速开发非常有用,因为我们不必为每个更改重新发布新的NuGet.
我们现在正在测试ASP.NET 5,并且不再在csproj
文件中定义依赖项,而是在project.json
文件中定义.因此,如果我们添加一个引用,我们会得到这样的结果project.json
:
"dependencies": {
"EntityFramework.Commands": "7.0.0-rc1-final",
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
"Microsoft.ApplicationInsights.AspNet": "1.0.0-rc1",
"Microsoft.AspNet.Authentication.Cookies": "1.0.0-rc1-final",
"Microsoft.AspNet.Diagnostics.Entity": "7.0.0-rc1-final",
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-rc1-final",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final",
"Microsoft.Extensions.CodeGenerators.Mvc": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.FileProviderExtensions": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final",
"Common.Utilities": "1.0.0.8-*"
}
Run Code Online (Sandbox Code Playgroud)
它还会创建一个包装器文件夹并将DLL复制到lib\dnx\451
文件夹. …
尝试在OSX中运行Android SDK Manager时,出现以下错误:
分段故障:11
这一直工作到今天.我可以加载Android SDK Manager的唯一方法是使用sudo.我试过更改文件夹的权限,这没有帮助.
有人能指出我正确的方向让它排序吗?我还运行DiskUtility并修复了HDD的权限.
我正在尝试利用Microsoft.VisualBasic
.Net Standard 2.0 类库(Financial.Rate
特别是该函数)中命名空间中的一些静态类。这是一个 C# 项目,该库包含各种财务函数和计算。我知道仅仅添加using Microsoft.VisualBasic;
是不够的,因为我需要引用实际的 dll。但我不确定如何在 .net 标准类库中执行此操作。
我曾尝试将 NuGet 包添加Microsoft.VisualBasic
到库中,但这不允许我访问所需的静态类。我对 .Net 比较陌生,所以我对如何正确引用程序集感到困惑。我能找到的所有示例都涉及一些较旧的 .net Framework 库,而不是 .net Standard。下面是参考管理器屏幕截图的链接,解决方案资源管理器和 using 语句如下所示。
任何帮助或建议将不胜感激。
是否可以将iOS代码和界面元素与Unity生成的iOS代码混合使用?
例如,如果我正在与在Unity中开发游戏的游戏开发人员合作,我可以使用他的xCode项目(由Unity生成),并使用Objective-C和Interface Builder等添加我自己编码的界面元素吗?
从我所看到的,这是不可能的,因为一切都是通过Unity创造的......但希望我错了......
谢谢!
我正在与IBM Bluemix合作,因此我创建了一个基本的ASP.net 5 Web应用程序,作为bluemix中的启动项目提供.在不同的其他文件中有一个名为dotnetstarter.xproj的项目文件.我能够在Visual Studio 2012中打开解决方案文件,但该解决方案无法理解具有扩展名.xproj的"项目".任何人都可以帮助我理解这类项目,如何在Visual Studio 2012中打开它?
我已经在SO中阅读了以下链接,但它没有帮助.
我正在编写.NET Core控制台应用程序.我想将控制台输入限制为每个输入的特定数量的最大字符.我有一些代码通过构建一个字符串Console.ReadKey()
而不是Console.ReadLine()
Everything在Windows上完美地测试它来实现这一点.然后,当我部署到运行Raspbian的Raspberry Pi 3时,我很快遇到了各种各样的问题.我记得Linux处理行结尾的方式与Windows不同,似乎退格处理方式也不同.我改变了处理它们的方式,取消了ConsoleKey而不是字符,换行问题消失了,但退格只是有时会注册.此外,有时字符会输出到我输入框外的控制台,即使我将ReadKey设置为不自行输出到控制台.我错过了Linux处理控制台输入的方法吗?
//I replaced my calls to Console.ReadLine() with this. The limit is the
//max number of characters that can be entered in the console.
public static string ReadChars(int limit)
{
string str = string.Empty; //all the input so far
int left = Console.CursorLeft; //store cursor position for re-outputting
int top = Console.CursorTop;
while (true) //keep checking for key events
{
if (Console.KeyAvailable)
{
//true to intercept input and not output to console
//normally. …
Run Code Online (Sandbox Code Playgroud)