question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues with Jetbrains Rider

See original GitHub issue

Describe the bug When opening a project made with HandyControl visual studio template, in Rider, I got a warning that Project ‘myProject’ load finished with warnings: [NETSDK1022] Duplicate ‘Page’ items were included. The .NET SDK includes ‘Page’ items from your project directory by default. You can either remove these items from your project file, or set the ‘EnableDefaultPageItems’ property to ‘false’ if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: ‘Properties\DesignTimeResources.xaml’ at (69:5)

this warning becomes an error when building or running the project in Rider, and won’t let me proceed. so I added a line

<EnableDefaultPageItems>false</EnableDefaultPageItems>

in myProject.csProj (I believe this value is default TRUE). and that error went away but a bunch of other errors appeared such as “Cannot resolve symbol ‘InitlizeComponent’” , cannot convert expression type MainWindow to return type System.windows.window (at CreateShell) MainWindow is hc:Window.

leaving EnabledDefaultPageItems to FALSE give all these same error in visual studio also, but setting to true make it work in visual studio. there are this ItemGroup in *.csProj file

<ItemGroup>
   <Page Include="Properties\DesignTimeResources.xaml" Condition="'$(DesignTime)'=='true' OR ('$(SolutionPath)'!='' AND Exists('$(SolutionPath)') AND '$(BuildingInsideVisualStudio)'!='true' AND '$(BuildingInsideExpressionBlend)'!='true')" >
     <Generator>MSBuild:Compile</Generator>
     <SubType>Designer</SubType>
     <ContainsDesignTimeResources>true</ContainsDesignTimeResources>
   </Page>
 </ItemGroup>

Removing these lines and setting EnabledDefaultPageItems to TRUE. Made the project work in Rider.

but when I change theme while any TextBox on the current page has the property VerticalScrollBarVisibility = true, the project throws an exception - See stacktace here To Reproduce Steps to reproduce the behavior:

  1. Create a project with HandyControl Visual Studio AddOn template
  2. open it inJetbrains Rider -First error
  3. Add <EnableDefaultPageItems> FALSE </EnableDefaultPageItems> -Second Error
  4. Create a TextBox and set VerticalScrollBarVisibility = Visible and then change Theme. -Third Error

Environment :

  • .net: core 3.0
  • IDE [e.g. vs 2019/ Rider 2020 2.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
DineshSolankicommented, Dec 1, 2020

I changed the height of TextBox and the theme change started working, but as I input text in it and it auto changes the height, Then changing the theme causes the exception. (means when VerticalScrollBar is visible) I think I’ll just go with disabling the scrollbar. Thank you so much for your help. for your efforts and ah…faster replies. 😄

1reaction
ghost1372commented, Dec 1, 2020

@ghost1372 Still the same problem.

In general, this problem is due to the design of your user interface With this change, I was able to run your program without any problems

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known Issues – Rider Support | JetBrains
Known Issues. Follow New articles New articles and comments · How to disable the new UI in JetBrains Rider on a version without...
Read more >
Problems tool window | JetBrains Rider Documentation
The Problems tool window displays problems that JetBrains Rider detects in your solution using several tabs. You can select any problem in ...
Read more >
Everything - JetBrains YouTrack
Issues Dashboards Agile Boards Reports Projects Knowledge Base. More. Log in... Everything. Enter search request. Project Assignee Priority State Tag More ...
Read more >
Rider Support | JetBrains
General · Known Issues · Troubleshooting.
Read more >
Marketplace (MP) - YouTrack - JetBrains
MP-2993 Plugin Verifier reports compatibility issues if plugin depends on other unapproved plugin. 1. Ivan Chirkov. Won't fix. Edoardo Luppi 9 Aug.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found