kswoll / WootzJs

C# to Javascript Compiler implemented via Roslyn
MIT License
109 stars 20 forks source link

Build problem #29

Open AndersMalmgren opened 8 years ago

AndersMalmgren commented 8 years ago

Hi, I have installed Microsoft Build Tools 2015 which seems to be the only requirement other than VS 2015?

I get

CSC : error CS0006: Metadata file '..\packages\Microsoft.CodeAnalysis.Analyzers
.1.0.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll' could not be f
ound [C:\Users\Anders\Documents\Projekt\WootzJs\WootzJs.Compiler\WootzJs.Compil
er.csproj]
CSC : error CS0006: Metadata file '..\packages\Microsoft.CodeAnalysis.Analyzers
.1.0.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll' could n
ot be found [C:\Users\Anders\Documents\Projekt\WootzJs\WootzJs.Compiler\WootzJs
.Compiler.csproj]

i use the VS 2015 community edition

AndersMalmgren commented 8 years ago

Hmm seems package restore is not working correctly from build cmd. If i restore manually and get a little further, now I get

C:\Users\Anders\Documents\Projekt\WootzJs\WootzJs.System\WootzJs.System.csproj(
44,3): error MSB4019: The imported project "C:\Users\Anders\Documents\Projekt\W
ootzJs\build\WootzJs.targets" was not found. Confirm that the path in the <Impo
rt> declaration is correct, and that the file exists on disk.
AndersMalmgren commented 8 years ago

Can you guys help me please, I think WootzJS could be the perfect gorund stone for my MVVM framework i'm planning to build

kswoll commented 8 years ago

@AndersMalmgren hi, sorry, I'll try to help when I get home from work today.

AndersMalmgren commented 8 years ago

Thanks dude

kswoll commented 8 years ago

Ok, so yeah, Mark helped make it so that you should be able to build WootzJs.sln entirely from within VS, which should also perform the package restore. Until recently, the packages were checked into git. I need to update the docs. Meanwhile, can you confirm that WootzJs.targets exists at the location specified in the error message?

AndersMalmgren commented 8 years ago

Will try it when I get home from work, only tried from build cmd. The folder did not exist, and was not created by the build cmd

AndersMalmgren commented 8 years ago

The compiler sln builds, but the WootzJS sln cant open most projects see load error below

C:\Users\Anders\Documents\Projekt\WootzJs\WootzJs.Compiler.Tests\WootzJs.Compiler.Tests.csproj : error : The imported project "C:\Users\Anders\Documents\Projekt\WootzJs\build\WootzJs.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. C:\Users\Anders\Documents\Projekt\WootzJs\WootzJs.Compiler.Tests\WootzJs.Compiler.Tests.csproj

The build folder does not exists, when is it supposed to be created?

AndersMalmgren commented 8 years ago

Any input on this guys? Thanks

Code0987 commented 8 years ago

This issue is solved by manually creating a blank folder build and removing any file with same name, and copy WootzJs.targets to build folder. Instead of folder build file with same name is being created, specified at <PostBuildEvent>$(ProjectDir)..\WootzJs.Compiler\bin\debug\WootzJs.Compiler.exe $(ProjectPath) $(OutDir) copy $(TargetDir)mscorlib.js $(ProjectDir)..\build copy $(TargetDir)mscorlib.dll $(ProjectDir)..\build</PostBuildEvent> </PropertyGroup> in ./WootzJs.Runtime/WootzJs.Runtime.csproj. Is this intended?

Adding mkdir .\build copy WootzJs.targets .\build\ in .\build.bat fixed issue for me.