Open carellagermano opened 3 years ago
Don't know about VBI but every one of my apps that I ported to VS 2022 and .Net 6 broke the same way. If you open in VS you will see you are missing reference to System and Visual Basic libraries that were previously always included in VB projects. I had to add to get my projects to work and I don't use VisualBasic.DLL or I would been to add that as well
<ItemGroup>
<Import Include="System" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Drawing" />
<Import Include="System.Windows.Forms" />
</ItemGroup>
Version Used:
Steps to Reproduce:
Expected Behavior:
Actual Behavior: Hi, I'm Germano, from Italy. I cloned git repository in order to build visual basic interactive, that is not included in roslyn version for visual studio. Before building I downloaded and installed dotnet 6.0.100 sdk, visual studio 2022 preview comunity. So, I started developer prompt for visual studio 2022 and cloned git repository. I ran restore.cmd and build.cmd -Config Release. After process finished I went in artifacts\bin\vbi\release\net6.0 and ran vbi.exe. Vbi.exe can't find all libraries, such as System.Collections, System.Threading.Tasks, and Microsoft.VisualBasicdll, that is in same folder; I attached log.txt file with the errors and warnings. So I tried to run csi.exe from release\net6.0 folder and it worked, then I ran vbi.exe in release\net4.72 and it worked. The code is the same, but in release\net6.0 folder of vbi.exe there are vbo.runtimeconfig.json and vbi.deps.json, that in release\net4.72 folder are absents. What can I do? I would include vbi.exe in roslyn\bin folder of my couple of visual studio. log.txt