Navigation Menu

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

Clean clone raises build warning #384

Open
Jaxsbr opened this issue Mar 27, 2022 · 1 comment
Open

Clean clone raises build warning #384

Jaxsbr opened this issue Mar 27, 2022 · 1 comment

Comments

@Jaxsbr
Copy link

Jaxsbr commented Mar 27, 2022

I ran into this build warning after a clean clone, same issue as #341
VS 2019 (16.11.9)

Severity	Code	Description	Project	File	Line	Suppression State
Warning		The file 'app.config' could not be added to the project.  Cannot add a link to the file C:\code-lab\FNA\app.config. This file is within the project directory tree.	FNA		

I was able to remedy this by modifying the FNA.csproj as below.
From: src

<None Include="app.config">
  <Link>$(TargetFileName).config</Link>
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>

To:

<None Include="app.config">
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
@flibitijibibo
Copy link
Member

flibitijibibo commented Mar 27, 2022

This kind of reads like a 2019 regression... the destination path isn't even correct misread the message, seems like they're both source paths... still doesn't explain why it suddenly hates the link.

For reference, this block is required by earlier VS versions: 555d234

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

2 participants