Comments (6)
My check in comment on the initial changes to AnkhSVN2019 outlines why I made a new implementation.
Work in progress on annotate command
I have given up hope that I can repair the original implementation of the Annotate function. The original version places a WinForms user control inside a document window and embeds a text editor in that user control.
So far as I can tell, it is no longer possible to place a WinForms user control directly in a document window.
The approach taken to embedding a text editor in the user control is designed to work in Visual Studio going back to version 2005. I suspect that it is much more complicated than it needs to be in Visual Studio 2019.
For these two reasons I have started restructuring the implementation using a WPF control and instantiating the editor in a completely different manner.
This is long way from being finished, but it is the bones of a working implementation.
However, I am still considering whether the annotation margin should be implemented as an editor margin. Fundamentally I think that would be a good idea, but I still have some open questions about how to implement that.
If I went that way, it would require more restructuring.
The implementation works fairly well, by I never found a set modify the caption in the tab on the editor window. Just from the tab, is looks like a normal editor window. At the time, I posted a question on StackOverflow, but never found a workable solution.
There is an open issue about handling the zoom level, but I guess this can be fixed.
I never paid any attention to older versions of Visual Studio. If this repository is the version in VS Marketplace which supports VS 2017 and VS 2019, it will probably work.
I have not tried to compile the version from this repository. If it is easy, then I could try to integrate my version of the Annotate viewer into this repository (or a fork of it). However, I will definitely not have time before October.
I found compiling from the original CollabNet repository anything but easy.
from ankhsvn.
Hi Bert,
I have forked your repository with the intention of moving my implementation of the Annotate viewer into this version.
I have hit a problem which I don't understand and I don't know how to fix.
My implementation uses a WPF UserControl, which I would move into the project Ankh.UI. For this I have added references to PresentationCore, PresentationFramework, System.Xaml and WindowsBase.
If I now select Add / New Item / WPF / UserControl(WPF)
, then it adds a new control UserControl1.xaml to the project. So far, there is no code from me.
If I now build the project, I get the following error:
1>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(268,9): error MC1000:
Unknown build error, 'Could not load type 'SharpSvn.Implementation.SvnLibraryAttribute' from assembly
'SharpSvn, Version=1.14001.54.0, Culture=neutral, PublicKeyToken=d729672594885a28'
because the method '.ctor' has no implementation (no RVA).'
I think RVA is probably Relative Virtual Address.
If I exclude UserControl1.xaml from the project, the error goes away. I can see no connection whatsoever between the WPF control and this error message.
I don't know if this is a problem which has to be fixed in SharpSvn or AnkhSvn, but for now, I am completely stuck.
from ankhsvn.
This appears to be an issue with the reference assembly created by the Sharpsvn build... The designer should have picked the actual binary instead of the reflection only version.
from ankhsvn.
Is there anything I can do to get around the problem, or is it something which has to be fixed in SharpSVN?
from ankhsvn.
Looks like this is/was an issue in https://github.com/JetBrains/Refasmer, which is used for creating the reference assembly.
I'm building a new SharpSvn and will publish it in NuGet.
from ankhsvn.
@PhilJollans I just updated the SharpSvn reference with some fixes via a newer Refasmer used there. If this doesn't fix this we should probably switch to a mock assembly instead of a reference assembly for this case, though I would hope not every reference assembly has this problem.
from ankhsvn.
Related Issues (20)
- In Visual Studio 2022, double-clicking changed item in Pending Changes toggles its checkmark for including/excluding from the commit HOT 9
- VS dark mode and history viewer colors
- How commit unmodified file to SVN HOT 1
- Bad file icons in the Pending Changes with 200% DPI
- VS 2022 Crashing when Right Click on Pending Changes files HOT 4
- This plug-in cannot be detected in the code conflict folder (这个插件在代码冲突文件夹无法检测出来)
- Ignore-on commit issue in VS 2022 HOT 3
- Unable to cast object of type 'Microsoft.VisualStudio.CommonIDE.Solutions.SolutionPropertyBag' to type 'Ankh.Scc.Native.ICOMPropertyBag' HOT 14
- Annotate screen doesn't work VS2022 HOT 1
- Exception in Visual Studio 2022 (version 17.2.0) when opening a solution that uses AnhSvn HOT 10
- VS 2022 crashing
- Double-clicking entry in changes list toggles selected status HOT 3
- Visual Studio 2022: "Source control provider associated with this solution could not be found" HOT 4
- System.InvalidCastException while importing from VS 2017 to VS 2022 HOT 3
- New file indicator missing from Solution Explorer HOT 1
- Please release a new version HOT 23
- Visual Studio 2022 process devenv.exe not closing HOT 17
- Pending changes are not reflected in VS 2019 with ANKH SVN plugin 2.9.58 HOT 1
- Unable to cast object of type 'Microsoft.VisualStudio.CommonIDE.Solutions.SolutionPropertyBag' to type 'Ankh.Scc.Native.ICOMPropertyBag' HOT 4
- System.InvalidCastException For Visual Statio 2022 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ankhsvn.