Fail to build TypeProvider

321 views
Skip to first unread message

Celso Axelrud

unread,
May 28, 2012, 12:51:04 PM5/28/12
to fsh...@googlegroups.com
When trying  "build.v.4.5.bat" I got the following error.
I am using VS11 beta. 

"1>FSC : error FS3031: The type provider '.\lib\FSharp\Net45\FSharp.Data.Typ
eProviders.dll' reported an error: Assembly attribute 'TypeProviderAssemblyAttri
bute' refers to a designer assembly 'FSharp.Data.TypeProviders' which is invalid
 or doesn't exist. Could not load file or assembly 'FSharp.Data.TypeProviders' o
r one of its dependencies. The system cannot find the file specified. [.\src\FSh
arpx.TypeProviders\FSharpx.TypeProviders.fsproj]"


The full content of final part of the build is:
"
Building project: .\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj
  c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe  .\src\FSharpx.TypeP
roviders\FSharpx.TypeProviders.fsproj /t:Build /m   /p:OutputPath=".\build" /p:C
onfiguration="Release" /p:TargetFrameworkVersion="v4.5" /p:DefineConstants="NET4
5"
c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe  .\src\FSharpx.TypePro
viders\FSharpx.TypeProviders.fsproj /t:Build /m   /p:OutputPath=".\build" /p:Con
figuration="Release" /p:TargetFrameworkVersion="v4.5" /p:DefineConstants="NET45"

Microsoft (R) Build Engine version 4.0.30319.17379
[Microsoft .NET Framework, version 4.0.30319.17379]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 5/28/2012 11:39:03 AM.
     1>Project ".\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj" on nod
e 1 (Build target(s)).
     1>Project ".\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj" (1) is
 building ".\src\FSharpx.Core\FSharpx.Core.fsproj" (2) on node 1 (default target
s).
     2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(96
5,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Ver
sion=v4.5,Profile=Client" were not found. To resolve this, install the SDK or Ta
rgeting Pack for this framework version or retarget your application to a versio
n 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 b
e used in place of reference assemblies. Therefore your assembly may not be corr
ectly targeted for the framework you intend. [.\src\FSharpx.Core\FSharpx.Core.fs
proj]
     2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(15
46,5): warning MSB3270: There was a mismatch between the processor architecture
of the project being built "MSIL" and the processor architecture of the referenc
e "mscorlib", "AMD64". This mismatch may cause runtime failures. Please consider
 changing the targeted processor architecture of your project through the Config
uration Manager so as to align the processor architectures between your project
and references, or take a dependency on references with a processor architecture
 that matches the targeted processor architecture of your project. [.\src\FSharp
x.Core\FSharpx.Core.fsproj]
     2>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all out
put files are up-to-date with respect to the input files.
       CoreCompile:
       Skipping target "CoreCompile" because all output files are up-to-date wit
h respect to the input files.
       CopyFilesToOutputDirectory:
         FSharpx.Core -> .\build\FSharpx.Core.dll
     2>Done Building Project ".\src\FSharpx.Core\FSharpx.Core.fsproj" (default t
argets).
     1>GenerateTargetFrameworkMonikerAttribute:
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all out
put files are up-to-date with respect to the input files.
       CoreCompile:
         C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\fsc.exe -o:
obj\MCD\Release\FSharpx.TypeProviders.dll --noframework --define:NET45 --optimiz
e+ -r:.\lib\FSharp\Net45\FSharp.Core.dll -r:.\lib\FSharp\Net45\FSharp.Data.TypeP
roviders.dll -r:.\build\FSharpx.Core.dll -r:"C:\Program Files (x86)\Microsoft Vi
sual Studio 11.0\Visual Studio Tools for Office\PIA\Office14\Microsoft.Office.In
terop.Excel.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Frame
work\.NETFramework\v4.5\mscorlib.dll" -r:"C:\Program Files (x86)\Reference Assem
blies\Microsoft\Framework\.NETFramework\v4.5\PresentationCore.dll" -r:"C:\Progra
m Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Presen
tationFramework.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\F
ramework\.NETFramework\v4.5\System.Configuration.dll" -r:"C:\Program Files (x86)
\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll" -r
:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\
v4.5\System.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Frame
work\.NETFramework\v4.5\System.Numerics.dll" -r:"C:\Program Files (x86)\Referenc
e Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Presentation.
dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFra
mework\v4.5\System.Xaml.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Mic
rosoft\Framework\.NETFramework\v4.5\System.Xml.dll" -r:"C:\Program Files (x86)\R
eference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.dll"
-r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramewor
k\v4.5\WindowsBase.dll" --target:library --warnaserror:76 --fullpaths --flaterro
rs "C:\Users\caxelrud\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttr
ibutes.fs" AssemblyInfo.fs ProvidedTypes.fsi ProvidedTypes.fs TypeProviderDSL.fs
 Settings.fs JSON.fs Inference.fs RegexProvider.fs RegistryProvider.fs FileSyste
mProvider.fs XmlInference.fs XmlProvider.fs JsonInference.fs JsonProvider.fs Min
iCsvProvider.fs AppSettingsProvider.fs XamlProvider.fs ExcelProvider.fs VectorPr
ovider.fs NamespaceProvider.fs

     1>FSC : error FS3031: The type provider '.\lib\FSharp\Net45\FSharp.Data.Typ
eProviders.dll' reported an error: Assembly attribute 'TypeProviderAssemblyAttri
bute' refers to a designer assembly 'FSharp.Data.TypeProviders' which is invalid
 or doesn't exist. Could not load file or assembly 'FSharp.Data.TypeProviders' o
r one of its dependencies. The system cannot find the file specified. [.\src\FSh
arpx.TypeProviders\FSharpx.TypeProviders.fsproj]

     1>FSC : warning FS3005: Referenced assembly '.\lib\FSharp\Net45\FSharp.Data
.TypeProviders.dll' has assembly level attribute 'Microsoft.FSharp.Core.Compiler
Services.TypeProviderAssemblyAttribute' but no public type provider classes were
 found [.\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj]
     1>Done Building Project ".\src\FSharpx.TypeProviders\FSharpx.TypeProviders.
fsproj" (Build target(s)) -- FAILED.

Build FAILED.

       ".\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj" (Build target)
 (1) ->
       ".\src\FSharpx.Core\FSharpx.Core.fsproj" (default target) (2) ->
       (GetReferenceAssemblyPaths target) ->
         C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(
965,5): warning MSB3644: The reference assemblies for framework ".NETFramework,V
ersion=v4.5,Profile=Client" were not found. To resolve this, install the SDK or
Targeting Pack for this framework version or retarget your application to a vers
ion of the framework for which you have the SDK or Targeting Pack installed. Not
e 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 co
rrectly targeted for the framework you intend. [.\src\FSharpx.Core\FSharpx.Core.
fsproj]


       ".\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj" (Build target)
 (1) ->
       ".\src\FSharpx.Core\FSharpx.Core.fsproj" (default target) (2) ->
       (ResolveAssemblyReferences target) ->
         C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(
1546,5): warning MSB3270: There was a mismatch between the processor architectur
e of the project being built "MSIL" and the processor architecture of the refere
nce "mscorlib", "AMD64". This mismatch may cause runtime failures. Please consid
er changing the targeted processor architecture of your project through the Conf
iguration Manager so as to align the processor architectures between your projec
t and references, or take a dependency on references with a processor architectu
re that matches the targeted processor architecture of your project. [.\src\FSha
rpx.Core\FSharpx.Core.fsproj]


       ".\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj" (Build target)
 (1) ->
       (CoreCompile target) ->
         FSC : warning FS3005: Referenced assembly '.\lib\FSharp\Net45\FSharp.Da
ta.TypeProviders.dll' has assembly level attribute 'Microsoft.FSharp.Core.Compil
erServices.TypeProviderAssemblyAttribute' but no public type provider classes we
re found [.\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj]


       ".\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj" (Build target)
 (1) ->
       (CoreCompile target) ->
         FSC : error FS3031: The type provider '.\lib\FSharp\Net45\FSharp.Data.T
ypeProviders.dll' reported an error: Assembly attribute 'TypeProviderAssemblyAtt
ribute' refers to a designer assembly 'FSharp.Data.TypeProviders' which is inval
id or doesn't exist. Could not load file or assembly 'FSharp.Data.TypeProviders'
 or one of its dependencies. The system cannot find the file specified. [.\src\F
Sharpx.TypeProviders\FSharpx.TypeProviders.fsproj]

    3 Warning(s)
    1 Error(s)

Time Elapsed 00:00:06.97
Running build failed.
Error:
Building .\src\FSharpx.TypeProviders\FSharpx.TypeProviders.fsproj project failed
.

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target         Duration
------         --------
Clean          00:00:00.1203008
AssemblyInfo   00:00:00.1791332
Total:         00:01:07.4410711
Status:        Failure
---------------------------------------------------------------------
Press any key to continue . . .
"

Reply all
Reply to author
Forward
0 new messages