Be sure to run Visual Studio as an administrator. Failure to do so causes a bunch of little problems.
Problem 1
After creating the Guidance package project type. I immediately tried to build and got “Error 1 ‘PostBuildEvent’ failed with error code ‘1’ ‘Unspecified error’ %ProjectPathHere% GuidanceSetup.vdproj %project name here%Setup”
Solution 1
The project path had a space in it and I was getting the error ‘C:\Users\neilth\Documents\Visual’ is not recognized as an internal or external command, operable program or batch file.” in the output window. I just moved the project to a path that had no spaces.
Discovery 1 – I’ve been playing with the solution and project template vstemplate xml files. I can easily change them around to rearrange the structure of the solution this factory will generate. I also found that it’s real easy to just right-click on the guidance project, register it and then open VS and create an instance of the solution that this guidance package generates. This seems like the most approachable feature of the guidance automation so far.
Problem 2 After adding another project to the solution template, and including a folder for it under projects. I get “An exception occurred during the binding of refrence or execution of recipe Restiers. Error was: action register failed to execute: Failed to process package. See the guidance package development output window for mrore information about the error..You can remove the reference to this recipe through the guidance package manager.
Solution 2 – The ProjectType element in the vstemplate for the new class library project was incorrect.I changed the project type to General, it then worked fine. I also saw some references to using CSharp as the project type. I found that the SampleLibrary template uses CSharp as the project type, so that’s good enough for me.
Discovery 2– Good forum is at http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=78&SiteID=1
Question 1 – Hmm.. where to I find the schemas for all of these xml files that I’m working with?
Discovery 3 – It’s a good idea to dload the other service factories (Web Service, Smart Client, Mobile Client etc) and use the shortcuts in the start menu to install the source code for the guidance package
Hmmm…progress slowed right down as soon as I started trying to explore existing guidance packages. Perhaps they are a bit too complex to fully understand at this point.