Skip to content

Need to fill out the rest of the .deps.json information #12

Closed

Description

@eerhardt

See the TODOs in the DependencyContextBuilder.cs added by #8.

Specifically:

  • RuntimeTargets
  • CreateResourceAssembly
  • We also need to add any resource assemblies for the current project.
  • Need to investigate if it is possible for the current project to bring in "native" libraries.
    • This is not possible.
  • Need to investigate if there is other project information that needs to get put in the .deps.json file

Activity

  1. brthor commented on Aug 26, 2016

    @brthor
    Contributor

    Something about the new deps.json is causing the error in the attached gist in migrated dotnet new -t web apps.

    https://gist.github.com/brthor/7270ce19780c8d487e6ff4dc9b457a2f

    When the deps.json is replaced with the deps.json from project.json based dotnet build, and the rest of the artifacts are left alone, this error does not appear.

  2. eerhardt commented on Aug 26, 2016

    @eerhardt
    MemberAuthor

    Looking at the errors in that gist:

          An unhandled exception has occurred: One or more compilation failures occurred:
          /Views/_ViewImports.cshtml(1,7): error CS0246: The type or namespace name 'WebApplication' could not be found (are you missing a using directive or an assembly reference?)
          /Views/_ViewImports.cshtml(2,7): error CS0246: The type or namespace name 'WebApplication' could not be found (are you missing a using directive or an assembly reference?)
          /Views/_ViewImports.cshtml(3,7): error CS0246: The type or namespace name 'WebApplication' could not be found (are you missing a using directive or an assembly reference?)
          /Views/_ViewImports.cshtml(4,7): error CS0246: The type or namespace name 'WebApplication' could not be found (are you missing a using directive or an assembly reference?)
          /Views/_ViewImports.cshtml(5,28): error CS0234: The type or namespace name 'Identity' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?)
          q3jxwj1v.aqn(34,11): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
    ...
    
    /Views/Home/Index.cshtml(2,14): error CS0518: Predefined type 'System.String' is not defined or imported
    /Views/Home/Index.cshtml(2,25): error CS0518: Predefined type 'System.String' is not defined or imported
       at Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult.EnsureSuccessful()
       at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.CreateCacheEntry(String relativePath, String normalizedPath, Func`2 compile)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.GetOrAdd(String relativePath, Func`2 compile)
    

    This is probably caused by not having PreserveCompilationContext implemented yet. See #11.

  3. added this to the milestone on Sep 19, 2016
  4. added a commit that references this issue on Jun 5, 2020
  5. added theissue type on Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions