Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use multiple ProjectReferences in a fsproj #79

Open
PhilT opened this issue Mar 28, 2020 · 0 comments
Open

Can't use multiple ProjectReferences in a fsproj #79

PhilT opened this issue Mar 28, 2020 · 0 comments

Comments

@PhilT
Copy link

PhilT commented Mar 28, 2020

I've also posted this issue with Ionide plugin ionide/Ionide-vim#23 however it manifests in a slightly different way. Maybe the issue is further upstream but if there are any workarounds I'd love to hear about them. Also, I'd be happy to dig into the issue further if someone could point me in the right direction.

Maybe I'm doing something wrong but this repo builds fine with dotnet build but when in Neovim I get The namespace 'Dep2' is not defined, despite having included it in the project. Dep1 can be opened but not Dep2. I get the same issue when including Dep2 in Dep1 and then trying to reference Dep2 in main.

Screenshot 2020-03-27 11 38 29

Main project file:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="Program.fs" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\dep1\dep1.fsproj" />
    <ProjectReference Include="..\dep2\dep2.fsproj" />
  </ItemGroup>

</Project>

Environment:

  • OS: Windows 10
  • Vim / Neovim version: Neovim 0.4.3
  • dotnet SDK version: Core 3.1
  • mono / .Net Framework version:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant