loresoft / PLINQO.EntityFramework.DbContext

Entity Framework DbContext templates for CodeSmith Generator
7 stars 7 forks source link

Installation instructions? #3

Open SergiiGalai opened 11 years ago

SergiiGalai commented 11 years ago

Cannot install plinqo from nuget

  1. create new asp.net mvc6 project
  2. install from nuget PLINQO.EntityFramework.DbContext

Log:

------- Installing...PLINQO.EntityFramework.DbContext 1.0.46 ------- Attempting to resolve dependency 'EntityFramework (≥ 6.0.0)'. Installing 'EntityFramework 6.0.1'. Added file 'App.config.transform' to folder 'EntityFramework.6.0.1\content'. Added file 'Web.config.transform' to folder 'EntityFramework.6.0.1\content'. Added file 'EntityFramework.dll' to folder 'EntityFramework.6.0.1\lib\net40'. Added file 'EntityFramework.SqlServer.dll' to folder 'EntityFramework.6.0.1\lib\net40'. Added file 'EntityFramework.SqlServer.xml' to folder 'EntityFramework.6.0.1\lib\net40'. Added file 'EntityFramework.xml' to folder 'EntityFramework.6.0.1\lib\net40'. Added file 'EntityFramework.dll' to folder 'EntityFramework.6.0.1\lib\net45'. Added file 'EntityFramework.SqlServer.dll' to folder 'EntityFramework.6.0.1\lib\net45'. Added file 'EntityFramework.SqlServer.xml' to folder 'EntityFramework.6.0.1\lib\net45'. Added file 'EntityFramework.xml' to folder 'EntityFramework.6.0.1\lib\net45'. Added file 'about_EntityFramework.help.txt' to folder 'EntityFramework.6.0.1\tools'. Added file 'EntityFramework.PowerShell.dll' to folder 'EntityFramework.6.0.1\tools'. Added file 'EntityFramework.PowerShell.Utility.dll' to folder 'EntityFramework.6.0.1\tools'. Added file 'EntityFramework.psd1' to folder 'EntityFramework.6.0.1\tools'. Added file 'EntityFramework.psm1' to folder 'EntityFramework.6.0.1\tools'. Added file 'init.ps1' to folder 'EntityFramework.6.0.1\tools'. Added file 'install.ps1' to folder 'EntityFramework.6.0.1\tools'. Added file 'migrate.exe' to folder 'EntityFramework.6.0.1\tools'. Added file 'EntityFramework.6.0.1.nuspec' to folder 'EntityFramework.6.0.1'. Added file 'EntityFramework.6.0.1.nupkg' to folder 'EntityFramework.6.0.1'. Successfully installed 'EntityFramework 6.0.1'. Executing script file 'E:\projects\plinqo.nuget.test\MvcApplication1\packages\EntityFramework.6.0.1\tools\init.ps1'. Installing 'PLINQO.EntityFramework.DbContext 1.0.46'. Added file 'readme.md' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\content'. Added file 'ICSharpCode.NRefactory.CSharp.dll' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\Common'. Added file 'ICSharpCode.NRefactory.dll' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\Common'. Added file 'Mono.Cecil.dll' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\Common'. Added file 'Entity.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp'. Added file 'Context.Editable.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Context.Generated.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Entity.Editable.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Entity.Generated.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Extensions.cs' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Generator.cs' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Mapping.Editable.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Mapping.Generated.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'MockedContext.Editable.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'MockedContext.Generated.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Model.cs' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Parser.cs' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Query.Editable.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'Query.Generated.cst' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools\CSharp\Internal'. Added file 'install.ps1' to folder 'PLINQO.EntityFramework.DbContext.1.0.46\tools'. Added file 'PLINQO.EntityFramework.DbContext.1.0.46.nuspec' to folder 'PLINQO.EntityFramework.DbContext.1.0.46'. Added file 'PLINQO.EntityFramework.DbContext.1.0.46.nupkg' to folder 'PLINQO.EntityFramework.DbContext.1.0.46'. Successfully installed 'PLINQO.EntityFramework.DbContext 1.0.46'. Adding 'EntityFramework 6.0.1' to MvcApplication1. Added file 'Web.config'. Added reference 'EntityFramework' to project 'MvcApplication1' Added reference 'EntityFramework.SqlServer' to project 'MvcApplication1' Added file 'packages.config'. Successfully added 'EntityFramework 6.0.1' to MvcApplication1. Executing script file 'E:\projects\plinqo.nuget.test\MvcApplication1\packages\EntityFramework.6.0.1\tools\install.ps1'. Adding 'PLINQO.EntityFramework.DbContext 1.0.46' to MvcApplication1. Added file 'readme.md'. Added file 'readme.md' to project 'MvcApplication1' Added file 'packages.config'. Successfully added 'PLINQO.EntityFramework.DbContext 1.0.46' to MvcApplication1.

Executing script file 'E:\projects\plinqo.nuget.test\MvcApplication1\packages\PLINQO.EntityFramework.DbContext.1.0.46\tools\install.ps1'.

tried manually executing of install.ps1 using the following command line: C:\Users\Cheburek>powershell.exe -noprofile -executionpolicy bypass -file "e:\pr ojects\plinqo.nuget.test\MvcApplication1\packages\PLINQO.EntityFramework.DbConte xt.1.0.46\tools\install.ps1" Running install.ps1 Update CodeSmith Project files You cannot call a method on a null-valued expression. At E:\projects\plinqo.nuget.test\MvcApplication1\packages\PLINQO.EntityFramewor k.DbContext.1.0.46\tools\install.ps1:29 char:36

Delete temporary file

So how to install it? Thank you in advance

niemyjski commented 10 years ago

I'm not seeing any errors but I'm also seeing that the csp isn't being created.

pwelter34 commented 10 years ago

You have to create the csp file yourself. Once created, add an output, select the template in the packages folder.