aspnet / Razor

[Archived] Parser and code generator for CSHTML files used in view pages for MVC web apps. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
883 stars 226 forks source link

Net core web app Broken builds in Azure DevOps #2755

Closed sscoleman closed 5 years ago

sscoleman commented 5 years ago

This runs fine on the developers machines. It is breaking in Azure DevOps without any added code.... It worked until. 12-17-2018. I cannot even run older commits that passed.

My Azure pipeline YML

2018-12-18T20:59:34.6138273Z D:\a\1\s\cbw.service.interfaces\cbw.service.interfaces.csproj : warning NU1604: Project dependency Microsoft.Data.Sqlite does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results. [D:\a\1\s\cbw.services.sln]
2018-12-18T20:59:34.6138714Z D:\a\1\s\cbw.service.interfaces\cbw.service.interfaces.csproj : warning NU1701: Package 'SQLite.Native 3.12.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project. [D:\a\1\s\cbw.services.sln]
2018-12-18T20:59:34.6139496Z D:\a\1\s\cbw.services\cbw.mvc.web.service.csproj : warning NU1604: Project dependency Microsoft.Data.Sqlite does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results. [D:\a\1\s\cbw.services.sln]
2018-12-18T20:59:34.6139888Z D:\a\1\s\cbw.services\cbw.mvc.web.service.csproj : warning NU1701: Package 'SQLite.Native 3.12.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project. [D:\a\1\s\cbw.services.sln]
2018-12-18T20:59:34.6140283Z D:\a\1\s\cbw.services\cbw.mvc.web.service.csproj : warning NU1604: Project dependency Microsoft.Data.Sqlite does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2018-12-18T20:59:34.6140637Z D:\a\1\s\cbw.services\cbw.mvc.web.service.csproj : warning NU1701: Package 'SQLite.Native 3.12.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project.
2018-12-18T20:59:34.6141009Z D:\a\1\s\cbw.service.interfaces\cbw.service.interfaces.csproj : warning NU1604: Project dependency Microsoft.Data.Sqlite does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
2018-12-18T20:59:34.6141393Z D:\a\1\s\cbw.service.interfaces\cbw.service.interfaces.csproj : warning NU1701: Package 'SQLite.Native 3.12.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project.
2018-12-18T20:59:34.6143044Z Providers\CustomCredentialsAuthProvider.cs(39,30): warning CS0168: The variable 'ex' is declared but never used [D:\a\1\s\cbw.services\cbw.mvc.web.service.csproj]
2018-12-18T20:59:34.6143555Z C:\Users\VssAdministrator\.nuget\packages\microsoft.aspnetcore.razor.design\2.2.0\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(161,5): error : Assembly location for Razor SDK Tasks was not specified. The most likely cause is an older incompatible version of Microsoft.NET.Sdk.Razor, or Microsoft.NET.Sdk.Web used by this project. Please target a newer version of the .NET Core SDK. [D:\a\1\s\cbw.services\cbw.mvc.web.service.csproj]
2018-12-18T20:59:34.6143916Z     9 Warning(s)
2018-12-18T20:59:34.6144111Z     1 Error(s)
sscoleman commented 5 years ago

I fixed it, posting here in case anyone else gets this issue

I updated the version from #2.1.500 to 2.2.100 2.1.100 worked last week??