Hey there! Recently I was facing problem with adding MomentJs library to Angular2 in .net core 2.0 project. I'm using Visual Studio 2017 15.3.3. ( https://www.visualstudio.com/pl/thank-you-downloading-visual-studio/?sku=Community&rel=15 ) Create new test project 2. Use Web -> Angular template 3. Compile and run in chrome to check that everything is ok. 4. Edit package.json. At the end of "dependencies" add new line: "moment": "2.18.1" 5. Edit tsconfig.json file, At "compilerOptions" add: "allowSyntheticDefaultImports": true, 6. Edit home.component.ts and add: import * as moment from 'moment'; and the constructor. constructor() { try { console.log("test"); let now = moment().format('LLLL'); console.log(now); } catch (e) { console.log(e); } } set br
getting Runtime Error after publishing even simplest (new project) web application with VisualStudio 2015 ? and in IIS logs you have: Cannot execute a program. The command being executed was "D:\HostingSpaces\XXXXX\wwwroot\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f282ca1d\e26e10c7\xj0hprs3.cmdline". at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at System.Web.Compilation.BuildManager.CallAppInitializeMethod() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) Cannot execute a program. The command being executed was ... try changing publish web