Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mpfund/aaaa8a6b2ee2c12d7b59de3284bdced7 to your computer and use it in GitHub Desktop.
Save mpfund/aaaa8a6b2ee2c12d7b59de3284bdced7 to your computer and use it in GitHub Desktop.
find VisualStudio projectfile not containing AppendTargetFramworkToOutputPath
# New vs project cspoj file format appends .net framework version to output folder
# https://stackoverflow.com/questions/43602782/how-do-i-set-outputpath-in-a-visual-studio-2017-project-new-csproj-file-form
# Search for all projectfiles containing net472 and not AppendTargetFrameworkToOuputPath
Get-ChildItem -Recurse *.csproj | where { ($_ | Select-String net472) -and -not ($_ | Select-String AppendTargetFrameworkToOutputPath) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment