-
Notifications
You must be signed in to change notification settings - Fork 87
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
Content Visible=false hides the item, but not the directories in Solution Explorer #162
Comments
Yes this is a known issue. We are discussing options to resolve it over here dotnet/project-system#1233 |
Using <ItemGroup Condition="'$(PlatformTarget)' == 'x64'">
<Content Include="@(CefRedist64)">
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
</Content>
</ItemGroup> The folder structure contains subfolders which appear in the project tree without any files in them. The dotnet/project-system#1233 was closed quite some time ago, was this issue resolved? Are changes required? The Happy to provide any further information, asking here as this issue is still open. If I should be asking somewhere else then please redirect me to the appropriate project. Thanks. |
The The packages that my example references also includes <Content Include="@(CefRedist64)">
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
<PublishState>Included</PublishState>
</Content> https://docs.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-items?view=vs-2019#content claims it's a |
I've opened dotnet/project-system#5859 to track this and will close this issue. @amaitland please take a look at that issue to ensure it covers your scenario. |
@drewnoakes Thanks for looking into this, greatly appreciated. I think that covers it, I'll subscribe to the new issue and provide feedback if required. |
I don't know whether this is project system or NuGet issue, however I have used a snippet from NuGet docs (https://docs.nuget.org/ndocs/schema/msbuild-targets#including-content-in-package) in my CSPROJ file to add additional files in my NuGet package:
The
Visible
element works well, so the file is hidden in the Solution Explorer, however I can still see the path including the ".." folder which is quite weird.I see this behavior in VS 2017 RC build 15.0.26020.0.
The text was updated successfully, but these errors were encountered: