-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Wrong whitespace added to csproj #113
Comments
also this doesn't work because <PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">
$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
</VSToolsPath>
</PropertyGroup>
<Import
Project="$(VSToolsPath)\SharePointTools\Microsoft.VisualStudio.SharePoint.targets"
Condition="'$(VSToolsPath)' != ''" |
In your configuration do you have it so that it's ignoring whitespace? |
Yes, otherwise it wouldn't align xml elements |
So that's the problem. In XML every tag is by default whitespace-sensitive unless the schema otherwise specifies, which is why by default we do our best to preserve whitespace under The best advice I can offer you is to keep it so that it's ignoring whitespace sensitivity, but then to wrap anything that you explicitly need it to respect whitespace with a prettier ignore comment, as in: <PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<!-- prettier-ignore-start -->
<VSToolsPath Condition="'$(VSToolsPath)' == ">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<!-- prettier-ignore-end -->
</PropertyGroup> |
editorconfig:
max_line_length = 120
current:
expected
msbuild tooling has problems with the added whitespaces. 😢 Current workaround is to extend
max_line_length = 160
The text was updated successfully, but these errors were encountered: