-
Notifications
You must be signed in to change notification settings - Fork 392
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
Disallow editing contentfiles from packages #2141
Comments
Is there any chance of this being addressed in the VS 2019 timeframe? This is a problem that should definitely be fixed! |
When addressing this, see if we can get invocation to open content file items in the dependencies tree to open the file, also non-editable. |
Any chance this is gonna get fixed soon? This seems to be a pretty serious bug as it makes it possible to edit a shared package. According to the documentation contenfiles should be readonly so tooling should respect that! |
@drewnoakes I created a simple Console NetCore project and added the nuget package AdamsLair.Duality.Samples.Tilemaps. There are some files under Content Files, but cannot open or edit them. |
@ocallesp these nodes were never wired up for interaction beyond the browse object. We may do that in future. This bug relates to the equivalent items within the "Data" folder at the bottom of your screenshot. |
Fixes: dotnet#2141 This marks package content items as user read-only, which causes them to be opened read-only in the editor.
Fixes: dotnet#2141 This marks package content items as user read-only, which causes them to be opened read-only in the editor. This depends on https://devdiv.visualstudio.com/DevDiv/_git/CPS/pullrequest/266425.
PR: #6480 and https://devdiv.visualstudio.com/DevDiv/_git/CPS/pullrequest/266425 (Microsofties only). |
Content files from nuget package simply show up in the tree as editable items. #604 tracks coming up with a proper editing experience by cloning the file but until then we should just mark them as readonly so that users don't accidentally change the packages.
The text was updated successfully, but these errors were encountered: