Visual Studio removes line break on start

倖福魔咒の 提交于 2019-11-29 23:05:49

This is a problem with Dexexpress Dim@ster patch. If you delete licenses.licx and compile in the source code. Not happend. The problem is when you open a form and licenses.licx is created again. Is you uninstall the patch this dissapear. But I dont understand why deactivating Resharper the problem gone too. But without patch and resharper + devexpress trial working fine.

The problem is the patch.

I'd do this before reinstalling:

  1. Uninstall All plugins
  2. Type devenv.exe /resetsettings

Now try and use your code as described without plugins. Slowly add back your plugins if its ok and check after each is installed if the problem manifests itself. if not it was some setting in one and its now gone, if it comes back after one is installed you have a good thing to look at.

Just blatting the environment means you'll never find out whats causing it, which would annoy me :)

Have a look at ReSharper's Braces-settings: http://www.jetbrains.com/resharper/features/code_formatting.html#Code_Style_Configuration_and_Sharing (1st screenshot). Try changing those settings according to your needs.
If you're a member of a team, maybe someone else enabled sharing of "code style settings". See the previous link for that, 2nd screenshot. Does it also occur when you just build the project?

In the build options try doing clean project, then open close the program. After this do a rebuild project. Also make sure the project is in debug mode for testing =)!

Delete the settings resharper in solution. Helped me.

I know that this question is a little bit old. But this may help anyone who encountered the same error with resharper and devexpress controls. I've tried all the above instructions, but the nothing works. BTW I'm using visual studio 2017 with resharper 2017.2.2 and devexpress 17.2.3

This what works for me.

Open build&run window in resharper. Click Resharper>Windows>Build&Run to open the the window then select "Enable 'Resharper Build'. Open any file in text editor and move the cursor at the end of any line of codes or on any empty line and try to build the project to see if it works.

Hope this will help.

At this point I would suggest uninstalling and reinstalling VS. Then add ReSharper and any of your extensions one at a time.

Turker Tunali

I had the same problem. I use this prebuilt-event script

break>$(ProjectDir)\Properties\licenses.licx

I have ReSharper 10.0.2, VS2013, DevExpress Components and VisualSVN.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!