From: Rob V. <rv...@do...> - 2014-07-02 09:38:00
|
Hmmm, turns out you can't have the MSBuild warning treated as an error because the WarningsAsError functionality only applies to compiler warnings not MSBuild warnings When I tried to mark the relevant MSBuild warnings MSB3644 and MSB3245 as errors they still just print as warnings and now the compiler complains that they aren't valid warning numbers: [11:24:47][Libraries\core\portable\dotNetRDF.Portable.csproj] GetReferenceAssemblyPaths [11:24:47][GetReferenceAssemblyPaths] GetReferenceAssemblyPaths [11:24:47][GetReferenceAssemblyPaths] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(847, 9): warning MSB3644: The reference assemblies for framework ".NETPortable,Version=v4.0,Profile=Profile136" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [11:24:48][Libraries\core\portable\dotNetRDF.Portable.csproj] ResolveAssemblyReferences [11:24:48][ResolveAssemblyReferences] ResolveAssemblyReference [11:24:48][ResolveAssemblyReference] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, 9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [11:24:48][ResolveAssemblyReference] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, 9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Net". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [11:24:48][ResolveAssemblyReference] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, 9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Xml". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [11:24:48][Libraries\core\portable\dotNetRDF.Portable.csproj] CoreCompile (3s) [11:24:48][CoreCompile] Csc (3s) [11:24:49][Csc] CSC warning CS1691: '3245' is not a valid warning number [11:24:49][Csc] CSC warning CS1691: '3644' is not a valid warning number So we still need to figure out what is missing on the TeamCity server that prevents the PCL build from building and we'll still get the unhelpful compilation errors hiding the true error message Rob On 02/07/2014 10:16, "Rob Vesse" <rv...@do...> wrote: > If you dig into the tree view build log you will still see the same error > message - > http://ci.dotnetrdf.org/viewLog.html?buildId=1009&buildTypeId=bt2&tab=build > Log#_focus=4578 > > Profile 136 is described as the following - .NET Portable Subset (.NET > Framework 4, Silverlight 5, Windows 8, Windows Phone Silverlight 8) - so > it may be that Silverlight 5, Windows 8 and Windows Phone Silverlight 8 > SDKs are also required > > Annonying the "error" I mention is only a warning by default, I will look > at editing that project to make it an error so the true error shows up in > the log overview rather than having to dig through the tree view log to > find it > > Rob > > On 01/07/2014 20:02, "Tomasz Pluskiewicz" <tom...@gm...> > wrote: > >> Hi Rob >> >> I installed the PCL update but now TeamCity fails with a swath of >> missing types and anmespaces including System.Uri and System.Xml. Is >> there something I must install or reconfigure? >> >> Tom >> >> On Tue, Jul 1, 2014 at 4:56 PM, Rob Vesse <rv...@do...> wrote: >>> Tom >>> >>> I've noticed that with the 1.0.5 changes to our PCL targets the PCL >>> libraries no longer build and the following warning is given in the >>> build >>> logs: >>> >>> [GetReferenceAssemblyPaths] >>> >>> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(84 >>> 7, >>> 9): warning MSB3644: The reference assemblies for framework >>> ".NETPortable,Version=v4.0,Profile=Profile136" were not found. To >>> resolve >>> this, install the SDK or Targeting Pack for this framework version or >>> retarget your application to a version of the framework for which you >>> have >>> the SDK or Targeting Pack installed. Note that assemblies will be >>> resolved >>> from the Global Assembly Cache (GAC) and will be used in place of >>> reference >>> assemblies. Therefore your assembly may not be correctly targeted for >>> the >>> framework you intend. >>> >>> Can you please install the necessary PCL targeting pack so we can get >>> things >>> building on TeamCity again? >>> >>> Thanks, >>> >>> Rob >>> >>> >>> ------------------------------------------------------------------------- >>> ----- >>> Open source business process management suite built on Java and Eclipse >>> Turn processes into business applications with Bonita BPM Community >>> Edition >>> Quickly connect people, data, and systems into organized workflows >>> Winner of BOSSIE, CODIE, OW2 and Gartner awards >>> http://p.sf.net/sfu/Bonitasoft >>> _______________________________________________ >>> dotNetRDF-develop mailing list >>> dot...@li... >>> https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop >>> >> >> -------------------------------------------------------------------------- >> ---- >> Open source business process management suite built on Java and Eclipse >> Turn processes into business applications with Bonita BPM Community >> Edition >> Quickly connect people, data, and systems into organized workflows >> Winner of BOSSIE, CODIE, OW2 and Gartner awards >> http://p.sf.net/sfu/Bonitasoft >> _______________________________________________ >> dotNetRDF-develop mailing list >> dot...@li... >> https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop > > > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > dotNetRDF-develop mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop > |