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

F# .net core project referencing F# .net standard project, the error list window shows some errors. #5244

Closed
YunWeiaa opened this issue Jun 28, 2018 · 5 comments
Labels
Area-LangService-API Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Milestone

Comments

@YunWeiaa
Copy link

YunWeiaa commented Jun 28, 2018

Repro steps

  1. Create a new F# .net core console app project;
  2. Add a new F# .net standard classlib project;
  3. Set reference from F# console app to F# netstandard classlibrary;
  4. Add line similar to: Say.hello "Lily"

Expected behavior

No errors in error list

Actual behavior

There is a red squiggly, and the Error List shows some errors as below, but build and run succeeded.

f 1

Known workarounds

Close solution and reopen, the red squiggly and errors disappear.

Related information

VS 15.8.0 Preview 5
Dotnet --info
dot

@YunWeiaa YunWeiaa changed the title F# .net core project referencing F# .net standard project, the error list window shows some errors。 F# .net core project referencing F# .net standard project, the error list window shows some errors. Jun 28, 2018
@TIHan
Copy link
Contributor

TIHan commented Jul 2, 2018

I can confirm this. It looks like we may not be kicking off any updates when a project gets referenced. I will look into it.

@TIHan TIHan self-assigned this Jul 2, 2018
@TIHan TIHan added Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code. Area-LangService-API labels Jul 2, 2018
@TIHan
Copy link
Contributor

TIHan commented Jul 2, 2018

I think I know what's happening now. We aren't updating command line args when the project gets referenced.

@cartermp cartermp added this to the 15.8 milestone Jul 2, 2018
@TIHan
Copy link
Contributor

TIHan commented Jul 2, 2018

Hmm, the command line args are updated correctly. Something else is going on.

@TIHan
Copy link
Contributor

TIHan commented Jul 3, 2018

#5284 should fix it.

@cartermp cartermp closed this as completed Jul 3, 2018
@YunWeiaa
Copy link
Author

YunWeiaa commented Oct 24, 2018

Regression on the .net core 2.2 rtm (2.2.100-rtm-009546) against d16.0/28222.01 (16.0 preview 1.0)
( Solution: Close VS and reopen the project, restore succeeded with no error in error list window.)
Not repro on the .net core 2.2 rtm (2.2.100-rtm-009546) against d15.9/28219.56 (15.9 preview 4.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-LangService-API Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Projects
None yet
Development

No branches or pull requests

3 participants