Can't build with Visual Studio Express Beta 2

Topics: Rawr.Base
Developer
Apr 7, 2010 at 10:44 PM
Edited Apr 7, 2010 at 10:53 PM

Attempting to build with Visual Studio Express Beta 2 result in the following warning/error messages:

Warning	1	Field 'Rawr.TankDK.CombatTable2._TPS' is never assigned to, and will always have its default value 0	C:\Users\dgt\Games\Rawr\Rawr.TankDK\DKAbilities\CombatTable2.cs	22	23	Rawr.TankDK.2010
Warning	2	Field 'Rawr.TankDK.CombatTable2._DPS' is never assigned to, and will always have its default value 0	C:\Users\dgt\Games\Rawr\Rawr.TankDK\DKAbilities\CombatTable2.cs	30	23	Rawr.TankDK.2010
Warning	3	The field 'Rawr.Hunter.Rotation._emActs' is assigned but its value is never used	C:\Users\dgt\Games\Rawr\Rawr.Hunter\Rotation.cs	519	23	Rawr.Hunter.2010
Warning	4	Assignment made to same variable; did you mean to assign something else?	C:\Users\dgt\Games\Rawr\Rawr.Mage\Solver.MIP.cs	910	21	Rawr.Mage.2010
Warning	5	Unreachable code detected	C:\Users\dgt\Games\Rawr\Rawr.Tree\CalculationsTree.cs	812	21	Rawr.Tree.2010
Warning	6	Field 'Rawr.DPSWarr.Markov.FuryGenerator.HSMatrix' is never assigned to, and will always have its default value null	C:\Users\dgt\Games\Rawr\Rawr.DPSWarr\Markov\FuryGenerator.cs	60	36	Rawr.DPSWarr.2010
Warning	7	The variable 'j' is assigned but its value is never used	C:\Users\dgt\Games\Rawr\Rawr.DPSWarr\Markov\FuryGenerator.cs	394	25	Rawr.DPSWarr.2010
Warning	8	The variable 'j' is assigned but its value is never used	C:\Users\dgt\Games\Rawr\Rawr.DPSWarr\Markov\FuryGenerator.cs	399	21	Rawr.DPSWarr.2010
Warning	9	The variable 'baseSplashDamage' is assigned but its value is never used	C:\Users\dgt\Games\Rawr\Rawr.Moonkin\MoonkinSolver.cs	492	19	Rawr.Moonkin.2010
Warning	10	The variable 'splashCoefficient' is assigned but its value is never used	C:\Users\dgt\Games\Rawr\Rawr.Moonkin\MoonkinSolver.cs	493	19	Rawr.Moonkin.2010
Error	11	The command "..\..\..\sgen4.exe Rawr.Base.dll" exited with code -2146232576.	Rawr.Base.2010
Error	12	The command "..\..\..\sgen4.exe Rawr.Mage.dll" exited with code -2146232576.	Rawr.Mage.2010
Warning	13	Could not resolve this reference. Could not locate the assembly "Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.	Rawr.Hunter.2010
Warning	14	The referenced component 'Microsoft.VisualStudio.QualityTools.UnitTestFramework' could not be found. 	

Is this an indication that my installation of VSE2010B2 is broken, that building with VS2010 requires the full version (rather than the express version), or something else?

Coordinator
Apr 7, 2010 at 10:52 PM

You should upgrade to the RC, Beta2 is outdated now.

Warnings are ignorable.

The error "Error 11 The command "..\..\..\sgen4.exe Rawr.Base.dll" exited with code -2146232576. Rawr.Base.2010", sounds like something wrong with Kavan's new sgen; any idea about that Kavan?

 

 

Developer
Apr 7, 2010 at 10:58 PM

I'm only finding the Beta 2 available (at "http://www.microsoft.com/express/Downloads/#Visual_Studio_2010_Express_Downloads")  Where can I find the VS Express RC?

 

Coordinator
Apr 8, 2010 at 12:10 AM

Hmm... Doesn't look like they released an RC of Express. You can still grab Premium from http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx. Regardless, I don't think that's the issue here, probably just something wrong with sgen4, Kavan's new tool.

Coordinator
Apr 8, 2010 at 5:32 AM
Edited Apr 8, 2010 at 5:39 AM

Try to copy Sgen4.exe from root Rawr folder and copy it into bin\Release\Data and try to run it from there directly. Do this by going to start menu, Microsoft Visual Studio 2010->Visual Studio Tools->Visual Studio Command Prompt (2010) and type "Sgen4.exe Rawr.Base.dll". (it should probably work with normal command prompt also if you don't have that in express)

What exceptions/errors does it return?

You can also disable that in project properties -> post build events, Rawr will still work although a bit slower.

Developer
Apr 8, 2010 at 6:56 AM

Copying it and manually running it from bin\Release\Data gives a pop-up error box that says: "Unable to find a version of the runtime to run this application."

 

Coordinator
Apr 8, 2010 at 8:09 AM

Yea, that looks like it requires the RC version. Either get that or remove the post-build step.

Apr 8, 2010 at 9:44 AM

Hmm, I'm using the Beta2 too and it converts / compiles like a charm after I removed the SCC-Information from the RestoSham and TankDK-Project-Files.
The info-screen shows 10.0.21006.1 B2Rel (it's the german version) 

I would think, that some SDK is missing, but the VS-Version should be ok...

Coordinator
Apr 8, 2010 at 11:50 AM

He's not using the Rawr.sln and converting it, but Rawr.2010.sln which targets the 4.0 framework.

Developer
Apr 8, 2010 at 3:47 PM
Kavan wrote:

Yea, that looks like it requires the RC version. Either get that or remove the post-build step.

I'd prefer to stick with the Express version since the RC of the full version expires "soon" and I don't plan to buy/install the full version but stick with express.

 

Removing the post-build step allowed the build to complete successfully.  What functionality/feature am I missing by removing the post-build step?

 

Coordinator
Apr 8, 2010 at 5:56 PM

You're not missing any functionality, only a small hit on performance.

Developer
May 19, 2010 at 7:10 PM

Ok, I get this same error.

Error    10    The command "..\..\..\sgen2.exe Rawr.Base.dll" exited with code -532459699.    Rawr.Base

What was the quick and dirty way of getting past this.

This is the version I am currently using:

Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.0.30319 RTMRel

Installed Version: C# Express

Microsoft Visual C# 2010   01014-532-2002262-70533
Microsoft Visual C# 2010

Coordinator
May 19, 2010 at 9:12 PM

Are you using Rawr.sln or Rawr.2010.sln? For VS2010 you should be using Rawr.2010.sln which uses sgen4.exe, sgen2.exe is intended for .NET Framework 2.0.

Developer
May 20, 2010 at 4:44 AM

Was using Rawr.sln