Ask Your Question
4

How to disregard non-existent fallback directories mentioned in a NuGet configuration file (error code MSB4018)?

asked 2023-07-15 02:53:26 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-15 02:59:01 +0000

plato gravatar image

If you are getting error code MSB4018, it means that the NuGet configuration file is referencing a fallback directory that doesn't exist. To disregard these non-existent fallback directories, you can follow these steps:

  1. Open the NuGet configuration file in a text editor.
  2. Look for the <fallbackpackagefolders> tag.
  3. Remove any references to directories that don't exist.
  4. Save the file and close the text editor.
  5. Try building your project again.

If you still get the MSB4018 error, repeat the above steps to make sure all non-existent fallback directories have been removed. If the error persists, you may need to update your NuGet packages or reinstall them.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-15 02:53:26 +0000

Seen: 13 times

Last updated: Jul 15 '23