x86 вверху. Вот как руководитель проекта заставил проект VB работать с проектом.
Вот верхняя часть csproj:
Код: Выделить всё
net8.0
enable
enable
true
x86
Код: Выделить всё
System.IO.FileNotFoundException: Could not load file or assembly 'Project.Api, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Project.Api, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext, RuntimeAssembly requestingAssembly, Boolean throwOnFileNotFound)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.get_StartupAssembly()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.get_MigrationsOperations()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType, String namespace)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration.c__DisplayClass0_0.b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.c__DisplayClass3_0`1.b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Could not load file or assembly 'Project.Api, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Я проверил это удаление
x86 позволяет нам использовать эти функции. Я также добавил x86 в Project.Database.csproj, но он просто сообщает мне, что сейчас не может найти Project.Database.csproj.< /p>
Мы могли бы просто удалять это из файла csproj каждый раз, когда хотим внести изменения в БД, но мне интересно, можно ли найти какое-нибудь исправление.
Подробнее здесь: https://stackoverflow.com/questions/792 ... -on-32-bit