有没有简单的方法将TFS版本控制集成到MonoDevelop中?我有一个新的MacBook Pro,并试图确定我可以用Mac原生应用程序做什么,我需要使用Parallels运行.
我下载了Microsoft Visual Studio团队资源管理器Everywhere 2010命令行客户端,并能够创建工作区,映射工作文件夹并获取最新代码.但是,从MonoDevelop内部获取最新信息会很不错.在选项中有我可以尝试和设置的外部工具,但我认为有人可能已经这样做了.有人这样做过吗?
另外,我看到opentf项目在2008年2月4日的发行说明中列出了一个alpha质量的MonoDevelop插件,但那是两年前的事了.有人用过吗?
在MonoDevelop中调试项目时,如何进入Mono Framework源代码?
我正在从openSUSE 11.3运行vanilla MonoDevelop.
在NSString的 Apple文档中有一个stringByReplacingCharactersInRange方法,但是我在Monotouch中找不到这个方法.
Monotouch是否缺少此方法实现 - 本机API绑定?
我需要这个方法在shouldChangeCharactersInRange中实现一些自定义字符串处理逻辑
我正在使用MonoDevelop 2.4.2 for OS X(Unity 3.4.1附带的版本),并且想知道是否有某种方法可以从基类或属性继承注释.
例:
public class Foo
{
/// <summary>
/// The describes the ABC property
/// </summary>
public virtual int ABC
{
get { return _abc; }
set { _abc = value; }
}
protected int _abc;
/// <summary>
/// The describes the XYZ property
/// </summary>
public virtual int XYZ
{
get { return _xyz; }
set { _xyz = value; }
}
protected int _xyz;
}
public class Bar : Foo
{
public override …Run Code Online (Sandbox Code Playgroud) 我正在使用Unity(3.4)Monodevelop(2.4.2),当我在调试器中逐步执行它时,它没有正确执行代码.这是显示它的视频的链接,请在720p运行并全屏显示...
http://www.youtube.com/watch?v=LGN7kxMUqjA
此外,这里有一些屏幕截图显示调试器在鼠标悬停变量时显示非常奇怪的值.这是在第一个if块中正确显示xSectionPixel的值时的样子...
这就是它在第二个if块中错误地显示xSectionPixel的值时的样子......

这也是它开始不正确地执行代码的代码行.
什么会导致这个?
我尝试使用存储库中的代码的新副本重新安装工具,我甚至将它设置在具有不同操作系统(Win 7)的不同计算机上,并且它总是做同样的事情.这不是说它必须是我的代码吗?
值得注意的是,我正在使用SVN从存储库中推送/拉取代码,而我的本地副本存在于我的Dropbox文件夹中.
非常感谢您的智慧!如果你能发现任何可能破坏事物的东西(也就是我使用浮点数和整数的方式,那么这里也是代码?)
Vector2 textureCoordToHexGridCoord(int textX, int textY)
{
Vector2 hexGridCoord = new Vector2();
float m = hexH / hexR;
int xsection = (int)(textX / (hexH + hexS));
int ysection = (int)(textY / (2 * hexR));
int xSectionPixel = (int)(textX - xsection * (hexH + hexS));
int ySectionPixel = (int)(textY - ysection * (2 * hexR));
//A Section
if(xsection % 2 == 0)
{
hexGridCoord.x = xsection;
hexGridCoord.y = ysection;
if(xSectionPixel < (hexH …Run Code Online (Sandbox Code Playgroud) 我的的csproj文件都指的是同一套源文件的集合,但略有不同的目标数据使得它,所以我需要保持项目文件分开.例如,同一项目的WinPhone,XBox,Desktop,MonoTouch变种.
对于真正重复的事情,比如要编译的.cs文件列表,我想将列表合并到一个文件中,这样我就不必确保所有变体都保持同步.我最初尝试通过从.csprojs中删除源并将它们放入由所有csprojs导入的.targets文件来实现这一点,但这使源文件从VS和MonoDevelop中消失.
我的第二次尝试是将Desktop csproj文件作为主要文件,并让所有变体都使用某些条件逻辑导入csproj.这使得源文件可以从主csproj中编辑,并且它们构建成所有风格.现在,Visual Studio了解我尝试做的事情,但MonoDevelop无法构建它.在MonoDevelop解决方案中,核心DLL的iOS版本显示为灰色并显示"(未内置在活动配置中)"
我也试过xbuilding csproj和解决方案,它似乎已经解决了MonoDevelop所遇到的问题,但却解决了与解决单触组件有关的其他问题.我原以为MonoDevelop使用的是xbuild,但也许没有?
由于这适用于Windows msbuild,因此它似乎是Mono中的错误或不受支持的功能.或者也许有更好的方法来解决整个场景......我想在这里问.
具体来说,My Core.iOS.csproj文件如下所示:
<?xml version="1.0" encoding="utf-8"?>
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
DefaultTargets="Build"
ToolsVersion="4.0" >
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{AE37B15F-F4BE-48DE-9F20-F00A601EC89E}</ProjectGuid>
<ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<AssemblyName>Core.iOS</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="monotouch" />
</ItemGroup>
<Import Project=".\Core.csproj" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
Run Code Online (Sandbox Code Playgroud)
我的Core.csproj文件如下所示:
<?xml version="1.0" encoding="utf-8"?>
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
DefaultTargets="Build"
ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Core</RootNamespace> …Run Code Online (Sandbox Code Playgroud) 尝试使用Mono for Android构建MonoDevelop时出现此错误.根据调试它不在我的代码中,所以我离开了无能为力.任何的想法?
错误MSB4185:尚未启用"System.Globalization.CultureInfo"类型上的"CurrentUICulture"函数.(MSB4185)
我已经查看了Xamarin的文档,并建议使用ThreadPool来实现多线程功能,如下所示:
http://docs.xamarin.com/guides/ios/application_fundamentals/threading
但是,已经完成了一项基准测试,表明Grand Central Dispatch比ThreadPool更具性能
因此,我的问题是,为什么Xamarin推荐ThreadPool而不是Grand Central Dispatch?Xamarin最终是否会将ThreadPool绑定到Grand Central Dispatch?什么时候选择一个而不是另一个?因为如果ThreadPool将由Xamarin优化,并最终胜过Grand Central Dispatch,那么我不想使用Grand Central Dispatch.
MonoDevelop建议转向:
if (someBoolVar)
anotherBoolVar = true;
Run Code Online (Sandbox Code Playgroud)
进入这个:
anotherBoolVar |= someBoolVar;
Run Code Online (Sandbox Code Playgroud)
它也做它,当我设置anotherBoolVar来false代替:
if (someBoolVar)
anotherBoolVar = false;
Run Code Online (Sandbox Code Playgroud)
变为:
anotherBoolVar &= !someBoolVar;
Run Code Online (Sandbox Code Playgroud)
有人可以解释这些陈述是如何平等的吗?
我最近完全过渡到 Linux,但很难找到一种用 C# 编写代码的好方法。我发现 Monodevelop 看起来类似于 Visual Studio,但是每当我尝试运行任何代码时,我都会收到此错误(如果重要,我会运行 pop!_os):
Debugger operation failed
ApplicationName='/usr/lib/gnome-terminal/gnome-terminal-server', CommandLine='--app-id mono.develop.id1f71c1c4cede406e9ae6cc55355f30e2', CurrentDirectory='', Native error= Cannot find the specified file
Run Code Online (Sandbox Code Playgroud)
它可能与终端的路径有关,但我不知道如何修复它。我知道这是一个 Linux 特定的东西,但我不知道比在这里发布它更好。
monodevelop ×10
c# ×5
mono ×3
xamarin.ios ×2
android ×1
ios ×1
ios4 ×1
macos ×1
msbuild ×1
nsstring ×1
overriding ×1
properties ×1
tfs ×1
xamarin ×1
xbuild ×1