Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 396 forks source link

Draft generates Javascript Docker support for Asp.Net Core MVC #827

Open kdcllc opened 6 years ago

kdcllc commented 6 years ago

I am testing this tool with ASP.NET Core MVC template and it generates Javascript/Node instead of DotNet Core.

  1. Draft version
    draft version
    &version.Version{SemVer:"v0.15.0", GitCommit:"9d73889a1318a435d126bc5df846610d30cfbe7f", GitTreeState:"clean"}
  2. Draft create debugger output
    
    PS D:\Dev\test\build2018> draft create --debug
    ?[37mDEBU?[0m[0000] with file: .
    ?[37mDEBU?[0m[0000] . is 4096 bytes
    ?[37mDEBU?[0m[0000] with file: .dockerignore
    ?[37mDEBU?[0m[0000] .dockerignore is 33 bytes
    ?[37mDEBU?[0m[0000] reading contents of .dockerignore
    ?[37mDEBU?[0m[0000] .dockerignore got language hints: []string(nil)

?[37mDEBU?[0m[0000] .dockerignore got result by data: Coq ?[37mDEBU?[0m[0000] with file: Controllers ?[37mDEBU?[0m[0000] Controllers is 0 bytes ?[37mDEBU?[0m[0000] Controllers is empty file, skipping ?[37mDEBU?[0m[0000] with file: Controllers\HomeController.cs ?[37mDEBU?[0m[0000] Controllers\HomeController.cs is 1056 bytes ?[37mDEBU?[0m[0000] reading contents of Controllers\HomeController.cs ?[37mDEBU?[0m[0000] Controllers\HomeController.cs got language hints: []string{"Smalltalk", "C#"}

?[37mDEBU?[0m[0000] Controllers\HomeController.cs got result by data: C# ?[37mDEBU?[0m[0000] with file: Models ?[37mDEBU?[0m[0000] Models is 0 bytes ?[37mDEBU?[0m[0000] Models is empty file, skipping ?[37mDEBU?[0m[0000] with file: Models\ErrorViewModel.cs ?[37mDEBU?[0m[0000] Models\ErrorViewModel.cs is 217 bytes ?[37mDEBU?[0m[0000] reading contents of Models\ErrorViewModel.cs ?[37mDEBU?[0m[0000] Models\ErrorViewModel.cs got language hints: []string{"Smalltalk", "C#"}

?[37mDEBU?[0m[0000] Models\ErrorViewModel.cs got result by data: C# ?[37mDEBU?[0m[0000] with file: Program.cs ?[37mDEBU?[0m[0000] Program.cs is 631 bytes ?[37mDEBU?[0m[0000] reading contents of Program.cs ?[37mDEBU?[0m[0000] Program.cs got language hints: []string{"Smalltalk", "C#"}

?[37mDEBU?[0m[0000] Program.cs got result by data: C# ?[37mDEBU?[0m[0000] with file: Properties ?[37mDEBU?[0m[0000] Properties is 0 bytes ?[37mDEBU?[0m[0000] Properties is empty file, skipping ?[37mDEBU?[0m[0000] with file: Properties\launchSettings.json ?[37mDEBU?[0m[0000] Properties\launchSettings.json is 674 bytes ?[37mDEBU?[0m[0000] Properties\launchSettings.json got result by name: JSON ?[37mDEBU?[0m[0000] with file: Startup.cs ?[37mDEBU?[0m[0000] Startup.cs is 2054 bytes ?[37mDEBU?[0m[0000] reading contents of Startup.cs ?[37mDEBU?[0m[0000] Startup.cs got language hints: []string{"Smalltalk", "C#"}

?[37mDEBU?[0m[0000] Startup.cs got result by data: C# ?[37mDEBU?[0m[0000] with file: Views ?[37mDEBU?[0m[0000] Views is 0 bytes ?[37mDEBU?[0m[0000] Views is empty file, skipping ?[37mDEBU?[0m[0000] with file: Views\Home ?[37mDEBU?[0m[0000] Views\Home is 0 bytes ?[37mDEBU?[0m[0000] Views\Home is empty file, skipping ?[37mDEBU?[0m[0000] with file: Views\Home\About.cshtml ?[37mDEBU?[0m[0000] Views\Home\About.cshtml is 163 bytes ?[37mDEBU?[0m[0000] Views\Home\About.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: Views\Home\Contact.cshtml ?[37mDEBU?[0m[0000] Views\Home\Contact.cshtml is 468 bytes ?[37mDEBU?[0m[0000] Views\Home\Contact.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: Views\Home\Index.cshtml ?[37mDEBU?[0m[0000] Views\Home\Index.cshtml is 4838 bytes ?[37mDEBU?[0m[0000] Views\Home\Index.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: Views\Home\Privacy.cshtml ?[37mDEBU?[0m[0000] Views\Home\Privacy.cshtml is 144 bytes ?[37mDEBU?[0m[0000] Views\Home\Privacy.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: Views\Shared ?[37mDEBU?[0m[0000] Views\Shared is 0 bytes ?[37mDEBU?[0m[0000] Views\Shared is empty file, skipping ?[37mDEBU?[0m[0000] with file: Views\Shared\Error.cshtml ?[37mDEBU?[0m[0000] Views\Shared\Error.cshtml is 869 bytes ?[37mDEBU?[0m[0000] Views\Shared\Error.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: Views\Shared_CookieConsentPartial.cshtml ?[37mDEBU?[0m[0000] Views\Shared_CookieConsentPartial.cshtml is 1898 bytes ?[37mDEBU?[0m[0000] Views\Shared_CookieConsentPartial.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: Views\Shared_Layout.cshtml ?[37mDEBU?[0m[0000] Views\Shared_Layout.cshtml is 3441 bytes ?[37mDEBU?[0m[0000] Views\Shared_Layout.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: Views\Shared_ValidationScriptsPartial.cshtml ?[37mDEBU?[0m[0000] Views\Shared_ValidationScriptsPartial.cshtml is 1172 bytes ?[37mDEBU?[0m[0000] Views\Shared_ValidationScriptsPartial.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: Views_ViewImports.cshtml ?[37mDEBU?[0m[0000] Views_ViewImports.cshtml is 100 bytes ?[37mDEBU?[0m[0000] Views_ViewImports.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: Views_ViewStart.cshtml ?[37mDEBU?[0m[0000] Views_ViewStart.cshtml is 35 bytes ?[37mDEBU?[0m[0000] Views_ViewStart.cshtml got result by name: C# ?[37mDEBU?[0m[0000] with file: appsettings.Development.json ?[37mDEBU?[0m[0000] appsettings.Development.json is 146 bytes ?[37mDEBU?[0m[0000] appsettings.Development.json got result by name: JSON ?[37mDEBU?[0m[0000] with file: appsettings.json ?[37mDEBU?[0m[0000] appsettings.json is 105 bytes ?[37mDEBU?[0m[0000] appsettings.json got result by name: JSON ?[37mDEBU?[0m[0000] with file: bin ?[37mDEBU?[0m[0000] bin is 0 bytes ?[37mDEBU?[0m[0000] bin is empty file, skipping ?[37mDEBU?[0m[0000] with file: bin\Debug ?[37mDEBU?[0m[0000] bin\Debug is 0 bytes ?[37mDEBU?[0m[0000] bin\Debug is empty file, skipping ?[37mDEBU?[0m[0000] with file: bin\Debug\netcoreapp2.1 ?[37mDEBU?[0m[0000] bin\Debug\netcoreapp2.1 is 0 bytes ?[37mDEBU?[0m[0000] bin\Debug\netcoreapp2.1 is empty file, skipping ?[37mDEBU?[0m[0000] with file: build2018.csproj ?[37mDEBU?[0m[0000] build2018.csproj is 242 bytes ?[37mDEBU?[0m[0000] build2018.csproj got result by name: XML ?[37mDEBU?[0m[0000] with file: obj ?[37mDEBU?[0m[0000] obj is 0 bytes ?[37mDEBU?[0m[0000] obj is empty file, skipping ?[37mDEBU?[0m[0000] with file: obj\Debug ?[37mDEBU?[0m[0000] obj\Debug is 0 bytes ?[37mDEBU?[0m[0000] obj\Debug is empty file, skipping ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1 ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1 is 4096 bytes ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs is 0 bytes ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs is empty file, skipping ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs is 0 bytes ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs is empty file, skipping ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs is 0 bytes ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs is empty file, skipping ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\build2018.AssemblyInfo.cs ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.AssemblyInfo.cs is 1000 bytes ?[37mDEBU?[0m[0000] reading contents of obj\Debug\netcoreapp2.1\build2018.AssemblyInfo.cs ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.AssemblyInfo.cs got language hints: []string{"Smalltalk", "C#"}

?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.AssemblyInfo.cs got result by data: C# ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\build2018.AssemblyInfoInputs.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.AssemblyInfoInputs.cache is 42 bytes ?[37mDEBU?[0m[0000] reading contents of obj\Debug\netcoreapp2.1\build2018.AssemblyInfoInputs.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.AssemblyInfoInputs.cache got language hints: []string(nil)

?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.AssemblyInfoInputs.cache got result by data: Coq ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cache is 42 bytes ?[37mDEBU?[0m[0000] reading contents of obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cache got language hints: []string(nil)

?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cache got result by data: Coq ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cs ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cs is 923 bytes ?[37mDEBU?[0m[0000] reading contents of obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cs ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cs got language hints: []string{"Smalltalk", "C#"}

?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.RazorAssemblyInfo.cs got result by data: C# ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\build2018.assets.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.assets.cache is 104877 bytes ?[37mDEBU?[0m[0000] reading contents of obj\Debug\netcoreapp2.1\build2018.assets.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.assets.cache : contents should be ignored, skipping ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\build2018.csproj.CoreCompileInputs.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.csproj.CoreCompileInputs.cache is 42 bytes ?[37mDEBU?[0m[0000] reading contents of obj\Debug\netcoreapp2.1\build2018.csproj.CoreCompileInputs.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.csproj.CoreCompileInputs.cache got language hints: []string(nil)

?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.csproj.CoreCompileInputs.cache got result by data: Coq ?[37mDEBU?[0m[0000] with file: obj\Debug\netcoreapp2.1\build2018.csprojAssemblyReference.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.csprojAssemblyReference.cache is 232922 bytes ?[37mDEBU?[0m[0000] reading contents of obj\Debug\netcoreapp2.1\build2018.csprojAssemblyReference.cache ?[37mDEBU?[0m[0000] obj\Debug\netcoreapp2.1\build2018.csprojAssemblyReference.cache : contents should be ignored, skipping ?[37mDEBU?[0m[0000] with file: obj\build2018.csproj.nuget.cache ?[37mDEBU?[0m[0000] obj\build2018.csproj.nuget.cache is 149 bytes ?[37mDEBU?[0m[0000] reading contents of obj\build2018.csproj.nuget.cache ?[37mDEBU?[0m[0000] obj\build2018.csproj.nuget.cache got language hints: []string(nil)

?[37mDEBU?[0m[0000] obj\build2018.csproj.nuget.cache got result by data: JavaScript ?[37mDEBU?[0m[0000] with file: obj\build2018.csproj.nuget.g.props ?[37mDEBU?[0m[0000] obj\build2018.csproj.nuget.g.props is 3378 bytes ?[37mDEBU?[0m[0000] obj\build2018.csproj.nuget.g.props got result by name: XML ?[37mDEBU?[0m[0000] with file: obj\build2018.csproj.nuget.g.targets ?[37mDEBU?[0m[0000] obj\build2018.csproj.nuget.g.targets is 2521 bytes ?[37mDEBU?[0m[0000] obj\build2018.csproj.nuget.g.targets got result by name: XML ?[37mDEBU?[0m[0000] with file: obj\project.assets.json ?[37mDEBU?[0m[0000] obj\project.assets.json is 525188 bytes ?[37mDEBU?[0m[0000] obj\project.assets.json got result by name: JSON ?[37mDEBU?[0m[0000] with file: wwwroot ?[37mDEBU?[0m[0000] wwwroot is 0 bytes ?[37mDEBU?[0m[0000] wwwroot is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\css ?[37mDEBU?[0m[0000] wwwroot\css is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\css is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\css\site.css ?[37mDEBU?[0m[0000] wwwroot\css\site.css is 882 bytes ?[37mDEBU?[0m[0000] wwwroot\css\site.css got result by name: CSS ?[37mDEBU?[0m[0000] with file: wwwroot\css\site.min.css ?[37mDEBU?[0m[0000] wwwroot\css\site.min.css is 282 bytes ?[37mDEBU?[0m[0000] wwwroot\css\site.min.css: filename should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\favicon.ico ?[37mDEBU?[0m[0000] wwwroot\favicon.ico is 32038 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\favicon.ico ?[37mDEBU?[0m[0000] wwwroot\favicon.ico : contents should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\images ?[37mDEBU?[0m[0000] wwwroot\images is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\images is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\images\banner1.svg ?[37mDEBU?[0m[0000] wwwroot\images\banner1.svg is 9679 bytes ?[37mDEBU?[0m[0000] wwwroot\images\banner1.svg got result by name: SVG ?[37mDEBU?[0m[0000] with file: wwwroot\images\banner2.svg ?[37mDEBU?[0m[0000] wwwroot\images\banner2.svg is 8394 bytes ?[37mDEBU?[0m[0000] wwwroot\images\banner2.svg got result by name: SVG ?[37mDEBU?[0m[0000] with file: wwwroot\images\banner3.svg ?[37mDEBU?[0m[0000] wwwroot\images\banner3.svg is 12291 bytes ?[37mDEBU?[0m[0000] wwwroot\images\banner3.svg got result by name: SVG ?[37mDEBU?[0m[0000] with file: wwwroot\js ?[37mDEBU?[0m[0000] wwwroot\js is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\js is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\js\site.js ?[37mDEBU?[0m[0000] wwwroot\js\site.js is 230 bytes ?[37mDEBU?[0m[0000] wwwroot\js\site.js got result by name: JavaScript ?[37mDEBU?[0m[0000] with file: wwwroot\js\site.min.js ?[37mDEBU?[0m[0000] wwwroot\js\site.min.js is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\js\site.min.js is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib ?[37mDEBU?[0m[0000] wwwroot\lib is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\lib is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap.bower.json ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap.bower.json is 984 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap.bower.json got result by name: JSON ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\LICENSE ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\LICENSE is 1106 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\bootstrap\LICENSE ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\LICENSE got language hints: []string(nil)

?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\LICENSE got result by data: Propeller Spin ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\css ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css is 4096 bytes ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css is 26719 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css got result by name: CSS ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css.map ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css.map is 47706 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css.map ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css.map got language hints: []string(nil)

?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css.map got result by data: Coq ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\css\bootstrap-theme.min.css ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.min.css is 23414 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.min.css: filename should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\css\bootstrap-theme.min.css.map ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.min.css.map is 25648 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\bootstrap\dist\css\bootstrap-theme.min.css.map ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.min.css.map got language hints: []string(nil)

?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap-theme.min.css.map got result by data: Coq ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\css\bootstrap.css ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.css is 152767 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.css got result by name: CSS ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\css\bootstrap.css.map ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.css.map is 389287 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\bootstrap\dist\css\bootstrap.css.map ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.css.map got language hints: []string(nil)

?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.css.map got result by data: Coq ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\css\bootstrap.min.css ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.min.css is 121205 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.min.css: filename should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\css\bootstrap.min.css.map ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.min.css.map is 542194 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\bootstrap\dist\css\bootstrap.min.css.map ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.min.css.map got language hints: []string(nil)

?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\css\bootstrap.min.css.map got result by data: Coq ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\fonts ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts is 4096 bytes ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.eot ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.eot is 20127 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.eot ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.eot : contents should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.svg ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.svg is 109025 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.svg got result by name: SVG ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.ttf ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.ttf is 45404 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.ttf ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.ttf : contents should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.woff ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.woff is 23424 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.woff ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.woff : contents should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.woff2 ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.woff2 is 18028 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.woff2 ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.woff2 : contents should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\js ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\js is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\js is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\js\bootstrap.js ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\js\bootstrap.js is 72084 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\js\bootstrap.js got result by name: JavaScript ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\js\bootstrap.min.js ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\js\bootstrap.min.js is 37051 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\js\bootstrap.min.js: filename should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\bootstrap\dist\js\npm.js ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\js\npm.js is 496 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\bootstrap\dist\js\npm.js got result by name: JavaScript ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery ?[37mDEBU?[0m[0000] wwwroot\lib\jquery is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery.bower.json ?[37mDEBU?[0m[0000] wwwroot\lib\jquery.bower.json is 570 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery.bower.json got result by name: JSON ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery\LICENSE.txt ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\LICENSE.txt is 1641 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\LICENSE.txt got result by name: Text ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery\dist ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\dist is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\dist is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery\dist\jquery.js ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\dist\jquery.js is 282115 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\dist\jquery.js got result by name: JavaScript ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery\dist\jquery.min.js ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\dist\jquery.min.js is 86929 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\dist\jquery.min.js: filename should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery\dist\jquery.min.map ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\dist\jquery.min.map is 132370 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\jquery\dist\jquery.min.map ?[37mDEBU?[0m[0000] wwwroot\lib\jquery\dist\jquery.min.map got language hints: []string(nil)

?[37mDEBU?[0m[0000] wwwroot\lib\jquery\dist\jquery.min.map got result by data: Coq ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation.bower.json ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation.bower.json is 957 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation.bower.json got result by name: JSON ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation\LICENSE.md ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\LICENSE.md is 1117 bytes ?[37mDEBU?[0m[0000] reading contents of wwwroot\lib\jquery-validation\LICENSE.md ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\LICENSE.md got language hints: []string{"GCC Machine Description", "Markdown"}

?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\LICENSE.md got result by data: Markdown ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation\dist ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation\dist\additional-methods.js ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist\additional-methods.js is 43184 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist\additional-methods.js got result by name: JavaScript ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation\dist\additional-methods.min.js ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist\additional-methods.min.js is 18467 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist\additional-methods.min.js: filename should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation\dist\jquery.validate.js ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist\jquery.validate.js is 50276 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist\jquery.validate.js got result by name: JavaScript ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation\dist\jquery.validate.min.js ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist\jquery.validate.min.js is 23264 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation\dist\jquery.validate.min.js: filename should be ignored, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation-unobtrusive ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive is 0 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive is empty file, skipping ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation-unobtrusive.bower.json ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive.bower.json is 474 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive.bower.json got result by name: JSON ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation-unobtrusive\LICENSE.txt ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive\LICENSE.txt is 587 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive\LICENSE.txt got result by name: Text ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation-unobtrusive\jquery.validate.unobtrusive.js ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive\jquery.validate.unobtrusive.js is 19748 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive\jquery.validate.unobtrusive.js got result by name: JavaScript ?[37mDEBU?[0m[0000] with file: wwwroot\lib\jquery-validation-unobtrusive\jquery.validate.unobtrusive.min.js ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive\jquery.validate.unobtrusive.min.js is 5763 bytes ?[37mDEBU?[0m[0000] wwwroot\lib\jquery-validation-unobtrusive\jquery.validate.unobtrusive.min.js: filename should be ignored, skipping ?[37mDEBU?[0m[0000] language: Markdown percent: 0.044966 color: ?[37mDEBU?[0m[0000] language: XML percent: 0.247212 color: ?[37mDEBU?[0m[0000] language: JavaScript percent: 18.851158 color: #f1e05a ?[37mDEBU?[0m[0000] language: SVG percent: 5.611243 color: ?[37mDEBU?[0m[0000] language: Propeller Spin percent: 0.044523 color: #7fa2a7 ?[37mDEBU?[0m[0000] language: Text percent: 0.089690 color: ?[37mDEBU?[0m[0000] language: Coq percent: 45.785721 color: ?[37mDEBU?[0m[0000] language: C# percent: 0.765226 color: #178600 ?[37mDEBU?[0m[0000] language: JSON percent: 21.299367 color: ?[37mDEBU?[0m[0000] language: CSS percent: 7.260893 color: #563d7c ?[37mDEBU?[0m[0000] linguist.ProcessDir('.') result:

Error: ?[37mDEBU?[0m[0000] Coq: 45.785721 () ?[37mDEBU?[0m[0000] JSON: 21.299367 () ?[37mDEBU?[0m[0000] JavaScript: 18.851158 (#f1e05a) ?[37mDEBU?[0m[0000] CSS: 7.260893 (#563d7c) ?[37mDEBU?[0m[0000] SVG: 5.611243 () ?[37mDEBU?[0m[0000] C#: 0.765226 (#178600) ?[37mDEBU?[0m[0000] XML: 0.247212 () ?[37mDEBU?[0m[0000] Text: 0.089690 () ?[37mDEBU?[0m[0000] Markdown: 0.044966 () ?[37mDEBU?[0m[0000] Propeller Spin: 0.044523 (#7fa2a7) --> Draft detected Coq (45.785721%) --> Could not find a pack for Coq. Trying to find the next likely language match... --> Draft detected JSON (21.299367%) --> Could not find a pack for JSON. Trying to find the next likely language match... --> Draft detected JavaScript (18.851158%) ?[37mDEBU?[0m[0000] pack path: C:\Users\karpo.draft\packs\github.com\Azure\draft\packs\javascript --> Ready to sail

bjornmagnusson commented 6 years ago

Do you have a code example?

kdcllc commented 6 years ago

@bjornmagnusson I simply use default Asp.net core 2.1 template by running:

dotnet new mvc

Version:

dotnet --version
2.1.300
bjornmagnusson commented 6 years ago

OK, I just tried this. It seems the reason is because the wwwroot/lib folder contains all the javascript libraries, and that folder is size-wise dominant in the entire folder.

As an experiment I deleted the wwwroot/lib folder, and once this is done the draft create does indeed result in the csharp pack.

A workaround is to use the --pack flag to draft create. By using draft create --pack csharp it does work even without the "deletion hack"

kdcllc commented 6 years ago

I tried to follow this Build2018 video. It seems that it used to work fine with this folder in the past.

bjornmagnusson commented 6 years ago

Make sense that following the best practices for creating apps using the default tool should be compatible with Draft. In this situation the files of the javascript libraries are larger than the csharp ones, which results in Draft choosing javascript.

Perhaps there is a need for some priority list of files per language.

You have any clues why the behaviour changes since Build2018 @bacongobbler ?