Skip to content
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

Update Develop Documentation for Visual Studio For Mac 2019? #100

Open
ali-h2010 opened this issue Apr 4, 2019 · 8 comments
Open

Update Develop Documentation for Visual Studio For Mac 2019? #100

ali-h2010 opened this issue Apr 4, 2019 · 8 comments

Comments

@ali-h2010
Copy link

after updating my visual studio to latest version 2019. I noticed that the DateInserter project i created is not working in the new 2019 IDE.

I noticed that some Classes are obsolete such as doc.Editor . I am not sure if it's the responsible for this issue.

I am getting the following when building but it completes the build:

WARNING [2019-04-04 15:24:26Z]: Stale account, cannot get vsid Error: did not find one of the files in sources//Library/Frameworks/Mono.framework/External/monodoc/MonoTouch-man

INFO [2019-04-04 15:24:24Z]: Fetching auth token for [...@..com]. ERROR [2019-04-04 15:24:24Z]: Account was stale and reauthentication was silent, cannot get a token at this time.

@Therzok
Copy link
Contributor

Therzok commented Apr 4, 2019

@DavidKarlas
Copy link
Member

@ali-h2010

  1. Did you enable "New Editor" setting in preferences?
  2. Can you attach full log?

@ali-h2010
Copy link
Author

ali-h2010 commented Apr 7, 2019

@DavidKarlas
Sorry for the late response. I don't see any option to enable "New Editor". I looked all over the preferences for that option.

I looked into the issue more and found out the following error in not found mono:
(Check image):
Screen-Shot-2019-04-07-at-7-47-01-AM

I followed the guide exactly and it was working fine before the update to visual studio 2019.

Full log:
DateInserterBuildLog.txt

@DavidKarlas
Copy link
Member

You need to update your DataInserter dependencies to target 8.0 versions of MonoDevelop.Core and MonoDevelop.Ide, unfortunately extensions that target 7.x version of IDE doesn't automatically support 8.x versions of IDE. So you will need to update you extension.

@ali-h2010
Copy link
Author

Thanks for the support. But what about the API? is it still the same?
For Example:
I am getting a warning on this line
doc.Editor.InsertAtCaret(date);
It says that doc.Editor is obsolete.
Is mono 8 documentation ready and published somewhere?

@DavidKarlas
Copy link
Member

New Editor is in preview that uses new(VS Windows editor) API, you can read more about that API at https://docs.microsoft.com/en-us/visualstudio/extensibility/inside-the-editor?view=vs-2019
Existing Editor was marked as [Obsolete] too early since it's still main and default editor.
Unfortunately documentation is not updated yet.

@Therzok
Copy link
Contributor

Therzok commented Apr 7, 2019

There is an intro guide here, and in it a link to a video going in depth with the VS editor APIs: https://github.com/mono/monodevelop/wiki/New-Editor-API-Guide

@ali-h2010
Copy link
Author

@DavidKarlas , Is there any expected timeline of updating the documentation. I am having trouble creating dialogs and understanding the samples. Why do i need to use Visual Basic to create the Dialog when i am coding in C#.

The sample is not working i am not getting any response on that opened issue.
#101 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants