I’m trying to move some code out of a working project into a separate class library project (assembly). No problem. Just a could class files to move. I can compile the main project fine. I can compile the class library fine. But, when I add the class library project as a reference to the main project then the main project will no longer compile. Note that I have not included any references to the library yet or even a using statement. I’ve only included it in the list of references. Here’s my output when I try to compile the solution.
------ Build started: Project: NETMF Helpers, Configuration: Debug Any CPU ------
NETMF Helpers -> D:\My Data\Source Code\NETMF Helpers\bin\Debug\NETMF Helpers.dll
------ Build started: Project: Omnimote, Configuration: Debug Any CPU ------
MMP : error MMP0000: 0xfd000000
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========
I always add the project of the class library to the same solution I’m working on. Then including a reference in the main project to the class library. Never had any problem with that. Can you try it this way?
I’ve tried removing all the references from both projects and adding them back. I’ve tried removing the projects from the solution and re-adding them. It’s weird… With no reference in the Omnimote project to the NETMF Helpers dll, I can compile both projects independently just fine.
------ Rebuild All started: Project: Omnimote, Configuration: Debug Any CPU ------
Omnimote -> D:\My Data\Source Code\Omnimote\Omnimote\bin\Debug\FEZ Panda II Application.exe
------ Rebuild All started: Project: NETMF Helpers, Configuration: Debug Any CPU ------
NETMF Helpers -> D:\My Data\Source Code\NETMF Helpers\bin\Debug\NETMF Helpers.dll
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========
But if I reference the dll from Omnimote, then I get…
------ Rebuild All started: Project: NETMF Helpers, Configuration: Debug Any CPU ------
NETMF Helpers -> D:\My Data\Source Code\NETMF Helpers\bin\Debug\NETMF Helpers.dll
------ Rebuild All started: Project: Omnimote, Configuration: Debug Any CPU ------
MMP : error MMP0000: 0xfd000000
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
I guess the next thing is to try and rebuild both projects from scratch.
I got it working… I think the problem was that I had initially created the class library using the generic NETMF “Class Library” project type. To fix the solution, I recreated the project by starting with a new project created from the regular “FEZ Panda II Application” template and then added everything back and changed the output type to Class Library. As far as I can tell, everything is identical but apparently not…
This is not the first time I’ve had to go through this with NETMF projects. I don’t know if it’s VS or NETMF or FEZ or what, but there is something broken in the way NETMF manages projects in VS. I work in VS2010 all day every day writing regular .NET apps and I never encounter this type of problem. This is the sort of stuff that turns beginners away quick and it’s something that GHI needs to work with Microsoft to help improve. At a minimum, we need more info back from the compiler than just “MMP : error MMP0000: 0xfd000000”. WTF does that mean?
Sorry to rant, but I’ve wasted a whole night on this and I know there are people on this forum that can give direct feedback to Microsoft and this type of basic stuff needs to be passed along and addressed.
It sure is VS There are times I needed to recreate a project in the full .NET world. Especially when you change the framework version, things can get screwed up It’s not related to NETMF.
I sometimes need to open the .sln or project file with a text-editor to modify file paths etc because of VS screwing it up.
Well, my solution compiles but when I try to deploy to the device I’m getting the infamous “An error has occurred: please check your hardware”. I’ve widdled my main() down to nothing but this and still no go. Time to get some sleep…
public static void Main()
{
while (true)
{
Debug.Print("test");
Thread.Sleep(80);
}
}
Actually, I was getting two of the “An error has occurred: please check your hardware” errors. I managed to get rid of one of them when I realized that my startup object had been lost during the project rebuilds. However, one of the errors persists. Really weird thing though is that it shows as an error and when I run it tells me that there were some deployment errors and asks me if I want to cancel or continue anyway. If I tell it to continue anyway then everything appears to deploy and run normally. Do I really have a problem?
Well, I’ve solved the “problem”. I rebuilt the class library again and gave it a different name. Problem went away. All I was getting in the error list was a line that said “An error has occurred: please check your hardware”.
I just ran across this thread when searching for the same issue. I had added a NUGET package and then decided to remove it and now it won’t build. Looks like I have to do the same as you did Ian and create it again.