MattWard:I believe it's a bug in SharpDevelop 2.1 introduced in revision 1752.
You can either go back to an older version (pre 1752) or try the workaround in the bug report, or wait until someone fixes it.
Ok so I did a bit of digging, No answers yet but a few observations.
First of all in the file:
src/Main/Base/Project/Src/Services/ParserService/NetCFProjectContentRegistry.cs
There is a similar error message in LoadProjectContent() "Warning: .NET Compact Framework SDK is not installed.", Perhaps a comment should be added to that file noting the difference such as below:
Index: src/Main/Base/Project/Src/Services/ParserService/NetCFProjectContentRegistry.cs
===================================================================
--- src/Main/Base/Project/Src/Services/ParserService/NetCFProjectContentRegistry.cs (revision 1826)
+++ src/Main/Base/Project/Src/Services/ParserService/NetCFProjectContentRegistry.cs (working copy)
@@ -53,11 +53,13 @@
return CecilReader.LoadAssembly(Path.Combine(netPath, shortName), this);
}
} else {
+ //If your working on bug SD2-1094, note that this is not where the error message is getting generated.
string message = "Warning: .NET Compact Framework SDK is not installed." + Environment.NewLine;
if (!TaskService.BuildMessageViewCategory.Text.Contains(message)) {
TaskService.BuildMessageViewCategory.AppendText(message);
}
===================================================================================
End diff
I also had to add a line to SharpDevelop.Build.CSharp.targets in addition to the ones in the workaround:
<Import Condition=" '$(TargetFrameworkVersion)' == 'v2.0.0.0' " Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets"/>
I believe this is because I added those lines before the Compact Framework imports and not after.