Schedule trigger Build Fails on Team City - teamcity

I have two triggers in Team City. VCS Trigger and Schedule trigger. VCS trigger works fine with every commit and builds successfully while schedule trigger's build fails and gives compilation error which was one in an earlier version of Checkin. Is it something that for this trigger team city is picking an earlier version of checkin not the latest one?
Can we set it to pick latest version? Please Help!!
Edit: Build Failure info
Build failure reason Compilation error:
Web\MySystems.Web.UI\MySystems.Web.UI.csproj
Open in IDE
Controllers\BilshotStatisticsController.cs(28, 13): error CS0012: The type 'MongoDB.Bson.BsonValue' is defined in an assembly that is not referenced. You must add a reference to assembly 'MongoDB.Bson, Version=2.2.3.3, Culture=neutral, PublicKeyToken=null'.
Controllers\BilshotStatisticsController.cs(28, 47): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
Controllers\BilshotStatisticsController.cs(28, 70): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
Controllers\BilshotStatisticsController.cs(31, 38): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
Controllers\BilshotStatisticsController.cs(31, 61): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
Controllers\BilshotStatisticsController.cs(72, 47): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
Controllers\BilshotStatisticsController.cs(72, 70): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
Controllers\BilshotStatisticsController.cs(75, 38): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
Controllers\BilshotStatisticsController.cs(75, 61): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
Controllers\BilshotStatisticsController.cs(207, 29): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
Controllers\BilshotStatisticsController.cs(207, 52): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
Controllers\BilshotStatisticsController.cs(207, 68): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
Controllers\BilshotStatisticsController.cs(207, 89): error CS1503: Argument 2: cannot convert from 'bool' to 'MongoDB.Bson.BsonValue'
Controllers\BilshotStatisticsController.cs(208, 27): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
Controllers\BilshotStatisticsController.cs(208, 50): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
Controllers\BilshotStatisticsController.cs(208, 66): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
Controllers\BilshotStatisticsController.cs(208, 87): error CS1503: Argument 2: cannot convert from 'bool' to 'MongoDB.Bson.BsonValue'
Adding Build Logs
[15:38:32][GenerateTargetFrameworkMonikerAttribute] Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
[15:38:32][Web\MySys.Web.UI\MySys.Web.UI.csproj] CoreCompile
[15:38:32][CoreCompile] Csc
[15:38:32][Csc] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\AutoMapper.4.1.1\lib\net45\AutoMapper.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Grid.Mvc.3.0.0\lib\net40\GridMvc.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.Identity.Core.2.2.1\lib\net45\Microsoft.AspNet.Identity.Core.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.Identity.EntityFramework.2.1.0\lib\net45\Microsoft.AspNet.Identity.EntityFramework.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.Identity.Owin.2.2.1\lib\net45\Microsoft.AspNet.Identity.Owin.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.SignalR.Core.2.2.0\lib\net45\Microsoft.AspNet.SignalR.Core.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.SignalR.SystemWeb.2.2.0\lib\net45\Microsoft.AspNet.SignalR.SystemWeb.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Microsoft.CSharp.dll" /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.Cors.3.0.1\lib\net45\Microsoft.Owin.Cors.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.Host.SystemWeb.3.0.1\lib\net45\Microsoft.Owin.Host.SystemWeb.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.Security.Cookies.3.0.1\lib\net45\Microsoft.Owin.Security.Cookies.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.Security.Facebook.3.0.0\lib\net45\Microsoft.Owin.Security.Facebook.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.Security.Google.3.0.0\lib\net45\Microsoft.Owin.Security.Google.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.Security.MicrosoftAccount.3.0.0\lib\net45\Microsoft.Owin.Security.MicrosoftAccount.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.Security.OAuth.3.0.1\lib\net45\Microsoft.Owin.Security.OAuth.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Owin.Security.Twitter.3.0.0\lib\net45\Microsoft.Owin.Security.Twitter.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\EnterpriseLibrary.Common.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.Common.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\EnterpriseLibrary.ExceptionHandling.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\EnterpriseLibrary.ExceptionHandling.Logging.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\EnterpriseLibrary.Logging.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.Logging.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.Configuration.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Unity.Mvc.4.0.1\lib\net45\Microsoft.Practices.Unity.Mvc.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.RegistrationByConvention.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll /reference:"C:\TeamCity\buildAgent\work\cb8cd64caf637969\Dependency Files\MongoDB.Driver.Core.dll" /reference:"C:\TeamCity\buildAgent\work\cb8cd64caf637969\Dependency Files\MongoDB.Driver.dll" /reference:"C:\TeamCity\buildAgent\work\cb8cd64caf637969\Dependency Files\MongoDB.Driver.Legacy.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\mscorlib.dll" /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Owin.1.0\lib\net40\Owin.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\PagedBil.1.17.0.0\lib\net40\PagedBil.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\PagedBil.Mvc.4.5.0.0\lib\net40\PagedBil.Mvc.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\Business\Data\MySys.Business.Data.Repository\bin\Debug\MySys.Business.Data.Repository.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\Business\Service\MySys.Business.Services\bin\Debug\MySys.Business.Services.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\Core\MySys.Core.DataContracts\bin\Debug\MySys.Core.DataContracts.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\Core\MySys.Core\bin\Debug\MySys.Core.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\Core\MySys.Core.ServiceContracts\bin\Debug\MySys.Core.ServiceContracts.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\Shared\MySys.Infrastructure.Identity\bin\Debug\MySys.Infrastructure.Identity.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\Shared\MySys.Shared.Infrastructure\bin\Debug\MySys.Shared.Infrastructure.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\Web\MySys.Web.Infrastructure\bin\Debug\MySys.Web.Infrastructure.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Configuration.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.EnterpriseServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.IdentityModel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Net.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Net.Http.dll" /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Net.Http.WebRequest.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Web.Abstractions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Web.ApplicationServices.dll" /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.Cors.5.0.0\lib\net45\System.Web.Cors.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Web.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Web.DynamicData.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Web.Entity.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Web.Extensions.dll" /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.WebApi.WebHost.5.2.3\lib\net45\System.Web.Http.WebHost.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Web.Routing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Web.Services.dll" /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Xml.Linq.dll" /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\WebActivatorEx.2.0\lib\net40\WebActivatorEx.dll /reference:C:\TeamCity\buildAgent\work\cb8cd64caf637969\packages\WebGrease.1.5.2\lib\WebGrease.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Collections.Concurrent.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Collections.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.ComponentModel.Annotations.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.ComponentModel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.ComponentModel.EventBasedAsync.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Diagnostics.Contracts.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Diagnostics.Debug.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Diagnostics.Tools.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Diagnostics.Tracing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Dynamic.Runtime.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Globalization.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.IO.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Linq.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Linq.Expressions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Linq.Parallel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Linq.Queryable.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Net.NetworkInformation.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Net.Primitives.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Net.Requests.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Net.WebHeaderCollection.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.ObjectModel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Reflection.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Reflection.Emit.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Reflection.Emit.ILGeneration.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Reflection.Emit.Lightweight.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Reflection.Extensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Reflection.Primitives.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Resources.ResourceManager.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Runtime.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Runtime.Extensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Runtime.Handles.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Runtime.InteropServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Runtime.InteropServices.WindowsRuntime.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Runtime.Numerics.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Runtime.Serialization.Json.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Runtime.Serialization.Primitives.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Runtime.Serialization.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Security.Principal.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.ServiceModel.Duplex.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.ServiceModel.Http.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.ServiceModel.NetTcp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.ServiceModel.Primitives.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.ServiceModel.Security.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Text.Encoding.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Text.Encoding.Extensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Text.RegularExpressions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Threading.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Threading.Tasks.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Threading.Tasks.Parallel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Threading.Timer.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Xml.ReaderWriter.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Xml.XDocument.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Xml.XmlSerializer.dll" /debug+ /debug:full /optimize- /out:obj\Debug\MySys.Web.UI.dll /subsystemversion:6.00 /target:library /utf8output ..\..\SolutionItems\VersionInfo.cs ActionFilters\SessionActionFilter.cs ActionFilters\UnderMaintainanceActionFilter.cs Api\EmployeeController.cs App_Start\BundleConfig.cs App_Start\FilterConfig.cs App_Start\RouteConfig.cs App_Start\Startup.Auth.cs App_Start\UnityConfig.cs App_Start\UnityMvcActivator.cs App_Start\WebApiConfig.cs Controllers\AccountController.cs Controllers\HomeController.cs Controllers\ImageController.cs Controllers\BilingBilController.cs Controllers\BilshotController.cs Controllers\BilshotStatisticsController.cs Controllers\BilshotTypeController.cs Controllers\ManageController.cs Controllers\RecipientController.cs Controllers\ScheduleBilshotController.cs Controllers\UnauthorizedController.cs Controllers\UserController.cs Global.asax.cs Hubs\SignalRHub.cs Models\AccountViewModels.cs Models\ManageViewModels.cs Properties\AssemblyInfo.cs Startup.cs "C:\TeamCity\buildAgent\temp\buildTmp\.NETFramework,Version=v4.6.AssemblyAttributes.cs"
[15:38:33][Csc] Controllers\AccountController.cs(21, 7): warning CS0105: The using directive for 'MySys.Infrastructure.Identity.Utils' appeared previously in this namespace
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(9, 7): warning CS0105: The using directive for 'MySys.Web.Infrastructure.ViewModel.BilshotManagement' appeared previously in this namespace
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(10, 7): warning CS0105: The using directive for 'MongoDB.Driver' appeared previously in this namespace
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(11, 7): warning CS0105: The using directive for 'MySys.Shared.Infrastructure.MongoDbEntities' appeared previously in this namespace
[15:38:33][Csc] Controllers\AccountController.cs(58, 41): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
[15:38:33][Csc] Controllers\BilingBilController.cs(170, 17): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
[15:38:33][Csc] Controllers\BilingBilController.cs(555, 41): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
[15:38:33][Csc] Controllers\BilshotController.cs(628, 41): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
[15:38:33][Csc] Controllers\BilshotController.cs(688, 29): warning CS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'
[15:38:33][Csc] Controllers\BilshotController.cs(768, 25): warning CS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'
[15:38:33][Csc] Controllers\BilshotController.cs(803, 17): warning CS0219: The variable 'UpdatedStatus' is assigned but its value is never used
[15:38:33][Csc] Controllers\BilshotController.cs(985, 41): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
[15:38:33][Csc] Controllers\BilshotController.cs(1087, 41): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
[15:38:33][Csc] Controllers\BilshotController.cs(1334, 41): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(28, 13): error CS0012: The type 'MongoDB.Bson.BsonValue' is defined in an assembly that is not referenced. You must add a reference to assembly 'MongoDB.Bson, Version=2.2.3.3, Culture=neutral, PublicKeyToken=null'.
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(28, 47): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(28, 70): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(31, 38): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(31, 61): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(72, 47): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(72, 70): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(75, 38): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(75, 61): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(207, 29): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(207, 52): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(207, 68): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(207, 89): error CS1503: Argument 2: cannot convert from 'bool' to 'MongoDB.Bson.BsonValue'
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(208, 27): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(208, 50): error CS1503: Argument 2: cannot convert from 'string' to 'MongoDB.Bson.BsonValue'
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(208, 66): error CS1502: The best overloaded method match for 'MongoDB.Driver.Builders.Query.EQ(string, MongoDB.Bson.BsonValue)' has some invalid arguments
[15:38:33][Csc] Controllers\BilshotStatisticsController.cs(208, 87): error CS1503: Argument 2: cannot convert from 'bool' to 'MongoDB.Bson.BsonValue'
[15:38:33][MSBuild] UnitTests\MySys.UnitTests.Controller\MySys.UnitTests.Controller.csproj: Build default targets
[15:38:33][UnitTests\MySys.UnitTests.Controller\MySys.UnitTests.Controller.csproj] CheckPrerequisites
[15:38:33][UnitTests\MySys.UnitTests.Controller\MySys.UnitTests.Controller.csproj] RestorePackages
[15:38:33][RestorePackages] Exec
[15:38:33][Exec] "C:\TeamCity\buildAgent\work\cb8cd64caf637969\.nuget\NuGet.exe" install

Related

Can't create projects

I am facing an issue with Visual Studio 2015. When I click on new project/add new file, I get an error message. I get this error even for clicking few menu items.
Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.
I even get few more errors like:
The 'XamlDesignerPackage' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\MY PC\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.
Restarting Visual Studio could help resolve this issue.
I have tried repair and reinstall(uninstall and install again) both didn't have any effect.
These are the errors found in ActivityLog.xml
<entry>
<record>392</record>
<time>2018/02/09 02:11:35.915</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Windows.DevelopmentKit.Desktop&apos; is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\10\DESKTOP SDK\...</description>
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.1\DESKTOP SDK\</path>
<entry>
<record>400</record>
<time>2018/02/09 02:11:47.980</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.Workspaces.Contracts, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. Could not find or load a type. (Exception from HRESULT: 0x80131522)</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\HEXW0BB4.KCG\TMLanguage.dll</path>
<entry>
<record>420</record>
<time>2018/02/09 02:12:00.074</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [ServiceProviderPackage]Source: &apos;GitHub.VisualStudio&apos; Description: Could not load type &apos;GitHub.Services.IUIProvider&apos; from assembly &apos;GitHub.Exports, Version=2.4.2.1331, Culture=neutral, PublicKeyToken=bc1bd09f2901c82e&apos;.
System.TypeLoadException: Could not load type &apos;GitHub.Services.IUIProvider&apos; from assembly &apos;GitHub.Exports, Version=2.4.2.1331, Culture=neutral, PublicKeyToken=bc1bd09f2901c82e&apos;.
at GitHub.VisualStudio.ServiceProviderPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)
at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass16_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)
at Microsoft.VisualStudio.Services.VsTask.GetResult()</description>
<guid>{D5CE1488-DEDE-426D-9E5B-BFCCFBE33E53}</guid>
<hr>80131522</hr>
<errorinfo></errorinfo>
And there are few more.

Xamarin iOS Linker fails on System.Net.Http.Primitives.dll

When building my Xamarin iOS (10.4.0.88) project for Release I get the following error when Link SDK assemblies only is enabled. I have Mono version 4.8.0.459
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(694,3): warning : Aot files could not be copied to the destination directory /Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/obj/iPhone/Release/mtouch-cache/64/Build/Msym/Msym/tmp: Could not start process.
1> --- inner exception
1> System.ComponentModel.Win32Exception (0x80004005): ApplicationName='mono-symbolicate', CommandLine='store-symbols "/Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/bin/iPhone/Release/ServiceOrdersMobileAppsiOS.app.mSYM" "/Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/obj/iPhone/Release/mtouch-cache/64/Build/Msym/Msym/tmp"', CurrentDirectory='', Native error= Cannot find the specified file
1> at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0018b] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Diagnostics/Process.cs:737
1> ---
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(694,3): warning : Aot files could not be copied to the destination directory /Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/obj/iPhone/Release/mtouch-cache/32/Build/Msym/Msym/tmp: Could not start process.
1> --- inner exception
1> System.ComponentModel.Win32Exception (0x80004005): ApplicationName='mono-symbolicate', CommandLine='store-symbols "/Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/bin/iPhone/Release/ServiceOrdersMobileAppsiOS.app.mSYM" "/Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/obj/iPhone/Release/mtouch-cache/32/Build/Msym/Msym/tmp"', CurrentDirectory='', Native error= Cannot find the specified file
1> at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0018b] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Diagnostics/Process.cs:737
1> ---
1> Process exited with code 1, command:
1> /Library/Frameworks/Mono.framework/Versions/Current/bin/mono /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5/mono-cil-strip.exe /Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/obj/iPhone/Release/mtouch-cache/64/Build/System.Net.Http.Primitives.dll /Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/bin/iPhone/Release/ServiceOrdersMobileAppsiOS.app/.monotouch-64/System.Net.Http.Primitives.dll
1> Mono CIL Stripper
1> Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
1> Parameter name: index
1> at System.Collections.CollectionBase.System.Collections.IList.get_Item (System.Int32 index) [0x00022] in <12e050e5b3d34326a1b4e2e7624e75da>:0
1> at Mono.Cecil.AssemblyNameReferenceCollection.get_Item (System.Int32 index) [0x00006] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.ReflectionReader.GetExportedTypeScope (Mono.Cecil.Metadata.MetadataToken scope) [0x00043] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.ReflectionReader.VisitExternTypeCollection (Mono.Cecil.ExternTypeCollection externs) [0x00089] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.AggressiveReflectionReader.ReadExternTypes () [0x0000c] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection (Mono.Cecil.TypeDefinitionCollection types) [0x0004f] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.ReflectionReader.VisitModuleDefinition (Mono.Cecil.ModuleDefinition mod) [0x00007] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.StructureReader.TerminateAssemblyDefinition (Mono.Cecil.AssemblyDefinition asm) [0x00034] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.AssemblyDefinition.Accept (Mono.Cecil.IReflectionStructureVisitor visitor) [0x0001f] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader irv, System.Boolean manifestOnly) [0x00014] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader reader) [0x00000] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.Cecil.AssemblyFactory.GetAssembly (System.String file) [0x00006] in <515b8343d4d0423f92114dba6b015690>:0
1> at Mono.CilStripper.Program.Main (System.String[] args) [0x00029] in <515b8343d4d0423f92114dba6b015690>:0
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(694,3): error : Could not strip assembly /Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/obj/iPhone/Release/mtouch-cache/64/Build/System.Net.Http.Primitives.dll.
1> --- inner exception
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(694,3): error : Could not strip assembly /Users/markmeyer/Library/Caches/Xamarin/mtbs/builds/ServiceOrdersMobileApps.iOS/295315d462497600265210bd6b0fdce2/obj/iPhone/Release/mtouch-cache/64/Build/System.Net.Http.Primitives.dll.
1> ---
1> at MonoTouch.Tuner.Stripper.Process (System.String assembly_file, System.String output_file) [0x000ba] in /Users/builder/data/lanes/3985/9975cb17/source/xamarin-macios/tools/mtouch/Stripper.cs:33
1> at Xamarin.Bundler.Target.m__2 (Xamarin.Bundler.Assembly assembly) [0x00065] in /Users/builder/data/lanes/3985/9975cb17/source/xamarin-macios/tools/mtouch/Target.cs:1041
1> at System.Threading.Tasks.Parallel+c__AnonStorey62[TSource,TLocal].<>m__0 (System.Int32 i) [0x00012] in <12e050e5b3d34326a1b4e2e7624e75da>:0
1> at System.Threading.Tasks.Parallel+<ForWorker>c__AnonStorey31[TLocal].<>m__1 () [0x000ed] in <12e050e5b3d34326a1b4e2e7624e75da>:0
I have the following additional mtouch arguments
-cxx -gcc_flags "-lc++" -v -v -v -v
If I turn off the linker everything builds and work fine. I need the linker to work to get my app approved by the app store as it strips out things I don't need (eg. CallKit). Any suggestions?
I've been experiencing the same problem and just found the solution. This appears to be a problem with the current beta versions of Xamarin iOS (10.4) and mono framework.
Assuming that you're not on the stable channel of Xamarin:
Open Xamarin Studio on the Mac and from the main menu click check for updates. Switch back to the stable channel and downgrade your Mono Framework and Xamarin iOS versions to the current releases.
After doing so I was able to build app archive with linking enabled for release in the app store with Xamarin Studio.
If you've been using the Visual Studio for Mac Preview, this version of the Mono Framework isn't compatible with it so you'll have to stick with Xamarin Studio or Visual Studio on Windows.

MSBuild on TFS failed - WebDeploy Package

I'm currently working on a build for a project, but I'm facing difficulties with the TFS Build.
I just want to create a zip package, using a TFS Build, with parameters from IIS Express.
CSPROJ configuration:
IIS Express is present on my machine and on the build server (I can access to the *.svc files in the project).
And all is on source control.
When I use the "Build Deployment Package" on my machine, I've got the zip.
When I use the "Build Deployment Package" on the build server, I've got the zip.
When I use the MSBuild's command line on both, I've got the zip.
The command line in question :
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "C:\WORKSPACES\[...]\Project.csproj" /p:Platform=AnyCPU;Configuration=Release /p:DeployTarget=Package /p:DeployOnBuild=true;DefaultPackageFileName=ZipName.zip
But when I put the same command line in a build, it fails:
"C:\Builds\2\[...]\Project.csproj" (default target) (1) ->
(PackageUsingManifest target) ->
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3009,5): error : Web deployment task failed.(Object of type 'manifest' and path 'C:\Builds\2\Project Release\Binaries\_PublishedWebsites\Project_Package\Project.SourceManifest.xml' cannot be created.) [C:\Builds\2\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3009,5): error : [C:\Builds\2\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3009,5): error : Object of type 'manifest' and path 'C:\Builds\2\Project Release\Binaries\_PublishedWebsites\Project_Package\Project.SourceManifest.xml' cannot be created. [C:\Builds\2\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3009,5): error : One or more entries in the manifest 'sitemanifest' are not valid. [C:\Builds\2\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3009,5): error : Site '' does not exist. [C:\Builds\2\[...]\Project.csproj]
Additional Infos, line 3009 refer to:
<VSMSDeploy Condition="!$(UseMsdeployExe)"
MSDeployVersionsToTry="$(_MSDeployVersionsToTry)"
Source="#(MsDeploySourceProviderSetting)"
Destination="#(MsDeployDestinationProviderSetting)"
DeploymentTraceLevel="$(PackageTraceLevel)"
DisableLink="$(PackageDisableLinks)"
EnableLink="$(PackageEnableLinks)"
DeclareParameterItems="#(_Package_MsDeployDeclareParameters)"
OptimisticParameterDefaultValue="$(EnableOptimisticParameterDefaultValue)"
ImportDeclareParametersItems="$(_VsPackageParametersFile)"
ReplaceRuleItems="#(MsDeployReplaceRules)"
RetryAttempts="$(RetryAttemptsForDeployment)">
I know I'm missing something, but I don't see what... so, if you have suggestions...it will be very welcome! :)
The tfs build did not run with the same account than me when I'm logged on the build server.
Is IIS Express is well launch with a tfs build ?
When I look in C:\Users\svcTfsBuild\Documents, there is no IISExpress directory, like with my user (svcTfsBuild is the service account for TFS Build).
The main goal:
Obtain a zip package with a tfs build with those parameters (parameters.xml within the zip package).
OR
Have a zip package where we can specify Application Pool and Physical Path when importing.
Like this:
<parameters>
<parameter name="IIS Web Application Name" defaultValue="Default Web Site/Project" tags="IisApp">
<parameterEntry kind="ProviderPath" scope="AppHostConfig" match="^ProjectTest/Project$" />
<parameterEntry kind="ProviderPath" scope="contentPath" match="^C:\\WORKSPACES\\[...]\\obj\\Release\\Package\\PackageTmp$" />
<parameterEntry kind="ProviderPath" scope="setAcl" match="^C:\\WORKSPACES\\[...]\\obj\\Release\\Package\\PackageTmp$" />
</parameter>
<parameter name="IIS Web Application Pool Name" defaultValue="ASP.NET v4.0">
<parameterEntry kind="DeploymentObjectAttribute" scope="application" match="application[#applicationPool='Clr4IntegratedAppPool']/#applicationPool" />
</parameter>
<parameter name="IisVirtualDirectoryPhysicalPath" defaultValue="D:\CompanyName\Project" tags="PhysicalPath">
<parameterEntry kind="DestinationVirtualDirectory" scope=".*" match="^C:\\WORKSPACES\\[...]$" />
</parameter>
</parameters>
Note : we can's specify the configuration in a parameters.xml directly on the csproj because the workspace are not the same on our machines, on the tfs build server...
I hope this is clear
EDIT: suggestion from drk
Like you said, I run the command line from the service account, and got this, in particular:
GenerateMsdeployManifestFiles:
Generate source manifest file for Web Deploy package/publish ...
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: The "IsCleanMSDeployPackageNeeded" task failed unexpectedly. [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Web.Deployment.DeploymentException: Object of type 'package' and path 'C:\WORKSPACES\[...]\obj\Release\Package\Project.zip' cannot be created. ---> Microsoft.Web.Deployment.DeploymentException: The Zip package 'C:\WORKSPACES\[...]\obj\Release\Package\Project.zip' could not be loaded. ---> System.UnauthorizedAccessException: Access to the path 'C:\WORKSPACES\[...]\obj\Release\Package\Project.zip' is denied. [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.Win32Native.RaiseIOExceptionFromErrorCode(Win32ErrorCode errorCode, String maybeFullPath) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.FileStreamEx.CreateInstance(String path, FileMode fileMode, FileAccess fileAccess, FileShare fileShare) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.ZipFile.Load() [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.ZipPackageProvider..ctor(DeploymentProviderContext providerContext, DeploymentBaseContext baseContext, String path) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: --- End of inner exception stack trace --- [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.ZipPackageProvider.GetAttributes(DeploymentAddAttributeContext addContext) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.DeploymentObject.EnsureValidAttributes() [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: --- End of inner exception stack trace --- [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.DeploymentManager.CreateObjectPrivate(DeploymentProviderContext providerContext, DeploymentBaseOptions baseOptions, DeploymentObject sourceObject) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.DeploymentManager.CreateObject(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.DeploymentManager.CreateObject(String provider, String path, DeploymentBaseOptions baseOptions) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Deployment.DeploymentManager.CreateObject(DeploymentWellKnownProvider provider, String path) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: --- End of inner exception stack trace --- [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Publishing.Tasks.DynamicAssembly.CallStaticMethod(String typeName, String methodName, Object[] arguments) [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Publishing.Tasks.IsCleanMSDeployPackageNeeded.Execute() [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\WORKSPACES\[...]\Project.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) [C:\WORKSPACES\[...]\Project.csproj]
Done Building Project "C:\WORKSPACES\[...]\Project.csproj" (default targets) -- FAILED.
Build FAILED.
I've checked the service account (SvcTfsBuild in my case).
He has full control over the workspace (so the source code).
And my account and the SvcTfsBuild account are on the same groups (local administrator).
But the TFS BUILD log (verbose mode) did not show any permission problem...
EDIT 2013/03/25
I've uncheck the checkbox "Use IIS Express" in the Web tab.
The build generate the good zip package.
So, I asume there is a problem only with IIS Express.
In the build, I've had an "InvokeProcess" on the sequence "Run On Agent", just after "CreateLabel".
It launch ISS Express with those arguments :
/site:Project-Site
In the log file, I've got a Result to 0 (so, I assume ISS Express is well launch, if not, it is supposed to throw an exception).
But, if the command line is not well formed or wrong (ie: with /site and /path wich cannot be combined), the result is also 0.
And if I launch ISS Express that way, the build is stopped (iisexpress wait a manual action to stop or just listen).
EDIT 2 2013/03/25
To launch IIS Express in the same time than the build, I've made this :
On the Parallel, I've got a variable named "BuildFinished" wich is set to True in the Finally of the build process (on left).
But, I've again the same error (Site '' does not exist).
I've also find a difference between the two Project.SourceManifest.xml when build through "Build Deployment Package" (in VS2010) and through the TFBUILD.
Build Deployment Package :
<?xml version="1.0" encoding="utf-8"?>
<sitemanifest>
<appHostConfig path="Project-Site/Project" />
<contentPath path="C:\WORKSPACES\Project\obj\Release\Package\PackageTmp" />
<setAcl path="C:\WORKSPACES\Project\obj\Release\Package\PackageTmp" setAclResourceType="Directory" />
<setAcl path="C:\WORKSPACES\Project\obj\Release\Package\PackageTmp" setAclUser="anonymousAuthenticationUser" setAclResourceType="Directory" />
</sitemanifest>
TFBUILD :
<?xml version="1.0" encoding="utf-8"?>
<sitemanifest>
<appHostConfig path="/Project" />
<contentPath path="C:\Builds\1\Project\obj\Release\Package\PackageTmp" />
<setAcl path="C:\Builds\1\Project\obj\Release\Package\PackageTmp" setAclResourceType="Directory" />
<setAcl path="C:\Builds\1\Project\obj\Release\Package\PackageTmp" setAclUser="anonymousAuthenticationUser" setAclResourceType="Directory" />
</sitemanifest>
The path value is not the same.
After a couple of trys, I think the problem is between IIS Express and MSDeploy wich can't work together (this is the one saying "Site '' does not exist.").
So, instead of thrying to make it work, we change our mind to use a configuration wich works: modifying the csproj during the build processs in order to use IIS.
Step 1: IIS on the build server
Create an application pool: the name and the Framework version are the two things that matters. Nothing more.
Create the application: name and application pool are important. You can use C:\temp as physical path.
Step 2: Build's definition
You have two choices: create a custom build activity (better one) or do it inside the xaml (ugly one).
The goal, is to have the followings steps:
On the "Run On Agent" sequence, just after the "If Create Label"
Remove the readonly attribute on the targeted csproj (the one on the workspace created by TFS)
Read the csproj's content
Replace the following XML tags
<UseIISExpress>True</UseIISExpress> by <UseIISExpress>False</UseIISExpress>
<UseIIS>False</UseIIS> by <UseIIS>True</UseIIS>
<IncludeIisSettings>False</IncludeIisSettings> by <IncludeIisSettings>true</IncludeIisSettings>
<IISUrl>{IIS Express URL}</IISUrl> by <IISUrl>{IIS URL}</IISUrl>
/!\ Beware: the booleans can be True or true!
/!\ Beware2: if using Cassini, the IISUrl's tag may have a word wrap, like:
`<IISUrl>
</IISUrl>`
This happened only with one of the 4 dev's machine.
{IIS Express URL}: is like http://localhost:8080/ or http://localhost:8080/Application with IIS Express or empty with Cassini.
{IIS URL}: is like http://localhost/Application.
And finally, overwrite the csproj (remember, the one in the TFS's workspace, not the on on source control) with the modify content.
{IIS Express URL} and {IIS URL} can be arguments from the build, but only if the build take the csproj one by one (1 build = 1 zip package, so 1 csproj have to be modified).
With that solution (I think there is a better one that I don't know), we use a configuration that we know it works.
When the zip package will be import in IIS, the application pool and the physical path can be change.
And this is our goal.
Hope this helps.

Compile errors (C4430 C2143 etc.) in VS2010 on Windows XP, not Windows 7

I am trying to convert my MFC project created with VS2005 to VS2010. When I try to compile the project on my laptop (Windows 7 x64), it runs without any problems with VS2010, but the other computer (strangely where the project was created) gives a bunch of errors all in winuser.h (below). I tried to research and trace the cause to no avail, any help would be greatly appreciated.
Error 4 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11405 1 Visualization
Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11408 1 Visualization
Error 7 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11412 1 Visualization
Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11415 1 Visualization
Error 10 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11419 1 Visualization
Error 11 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11422 1 Visualization
Error 24 error C2513: 'BOOL *' : no variable declared before '=' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 18 error C2491: 'GetMonitorInfoW' : definition of dllimport data not allowed c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11484 1 Visualization
Error 14 error C2491: 'GetMonitorInfoA' : definition of dllimport data not allowed c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11478 1 Visualization
Error 21 error C2275: 'LPRECT' : illegal use of this type as an expression c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 22 error C2275: 'LPARAM' : illegal use of this type as an expression c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 20 error C2275: 'HDC' : illegal use of this type as an expression c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 23 error C2165: 'left-side modifier' : cannot modify pointers to data c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11492 1 Visualization
Error 12 error C2146: syntax error : missing ')' before identifier 'hMonitor' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11478 1 Visualization
Error 16 error C2146: syntax error : missing ')' before identifier 'hMonitor' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11484 1 Visualization
Error 3 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11405 1 Visualization
Error 6 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11412 1 Visualization
Error 9 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11419 1 Visualization
Error 15 error C2059: syntax error : ')' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11479 1 Visualization
Error 19 error C2059: syntax error : ')' c:\program files\microsoft sdks\windows\v7.0a\include\winuser.h 11485 1 Visualization
Is this a problem between different machines or between different build configs (win32 vs x64)? If it is the former, diff the winuser.h files on both machines, they should be identical.
Hope this helps.
Cheers,
Sebastiaan

Problems with setting up opengl and visual studio 2010

I am a beginner for opengl and visual studio. I am using VS2010 and I met several problems when setting up opengl. I downloaded the NVDIA SDK so I have the gl.h and other header files under include directory. I downloaded glut and put glut32.dll in the same directory as my source file. It does not work if I put glut32.dll under system32. I can see the file using explorer but it is not visible for other applications including VS2010. I also put the lib files to the right windows SDK folder and added the linkers glut32.lib glu32.lib opengl32.lib to my project. I found this code online
http://uowteaminvincible.wordpress.com/2010/06/23/getting-started-with-opengl-and-glut-in-microsoft-visual-studio-2008-in-windows-vista/
it does not give me anything but a write window(even I uncommented some functions in the end)
Also there is a lot of errors(but can be compiled and run)
Please help. Thank you!
1 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1152 1
2 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1152 11
3 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1153 1
4 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1153 11
5 IntelliSense: variable "WINGDIAPI" is not a type name c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1154 1
6 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1154 21
7 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1155 1
8 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1155 11
9 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1156 1
10 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1156 11
11 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1157 1
12 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1157 11
13 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1158 1
14 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1158 11
15 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1159 1
16 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1159 11
17 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1160 1
18 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1160 11
19 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1161 1
20 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1161 11
21 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1162 1
22 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1162 11
23 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1163 1
24 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1163 11
25 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1164 1
26 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1164 11
27 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1165 1
28 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1165 11
29 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1166 1
30 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1166 11
31 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1167 1
32 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1167 11
33 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1168 1
34 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1168 11
35 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1169 1
36 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1169 11
37 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1170 1
38 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1170 11
39 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1171 1
40 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1171 11
41 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1172 1
42 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1172 11
43 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1173 1
44 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1173 11
45 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1174 1
46 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1174 11
47 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1175 1
48 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1175 11
49 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1176 1
50 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1176 11
51 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1177 1
52 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1177 11
53 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1178 1
54 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1178 11
55 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1179 1
56 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1179 11
57 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1180 1
58 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1180 11
59 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1181 1
60 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1181 11
61 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1182 1
62 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1182 11
63 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1183 1
64 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1183 11
65 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1184 1
66 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1184 11
67 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1185 1
68 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1185 11
69 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1186 1
70 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1186 11
71 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1187 1
72 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1187 11
73 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1188 1
74 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1188 11
75 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1189 1
76 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1189 11
77 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1190 1
78 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1190 11
79 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1191 1
80 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1191 11
81 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1192 1
82 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1192 11
83 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1193 1
84 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1193 11
85 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1194 1
86 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1194 11
87 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1195 1
88 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1195 11
89 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1196 1
90 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1196 11
91 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1197 1
92 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1197 11
93 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1198 1
94 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1198 11
95 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1199 1
96 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1199 11
97 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1200 1
98 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1200 11
99 IntelliSense: this declaration has no storage class or type specifier c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1201 1
100 IntelliSense: expected a ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h 1201 11
Try including windows.h before gl.h
Also, see this Can't include <gl/gl.h>

Resources