IronRuby 1.3.1 VS 2010 SP1 Installation Issue - ironruby

I've downloaded the latest release of IronRuby from codeplex and ran the install with no issues.
However when I come to create a project i receive the message:
IronRuby installation not found. Although basic scripts should work standard libraries and gems won't be available....."
This seems to be an issue with vs2010 sp1 from the project issue tracker on codeplex, but theres no fix mentioned there. I only really wanted this release for the tools support so using 1.0 is something I want to avoid.
Has anyone got any workrounds/fixes/advice?

I used NuGet to install IronRuby. When I did so, it automatically added the references for me.
Go to Tools -> Library Package Manager -> Package Manager Console.
Type Install-Package ironruby
Viola!
EDIT: If you look here, they have a link where the bug is discussed.

Related

OmniSharp Error: Found dotnet version 5.0.201. Minimum required version is 6.0.100

I use VS Code as my IDE. Today I saw in my C# files that I could no longer use things like "Go To Definition/Implementations" or hover over anything to get the path/type etc.
I found my Omnisharp console and saw they updated last night and there is an error:
Error: Found dotnet version 5.0.201. Minimum required version is 6.0.100.
I can't upgrade my dotnet because 6.0 is not compatible with the runtime in my project and on Mac M1, there are a lot of issues running multiple dotnet instances..
I guess its a bit of a rock and a hard place, anyone know how I can get around this issue?
This is a recent update to Omnisharp, which is used by the VS Code C# extension. Add this to your settings and restart the editor.
"omnisharp.useModernNet": false,
"omnisharp.path": "",
Also if you don't have Visual Studio installed you will likely need to install the Build Tools to get MSBuild:
My understanding of the rationale behind this change is an optimization for modern vanilla c# projects over those using older versions (ie Unity). More info in this issue.
Revert your Omnisharp to previous version
Update 1.25.0 introduces newer OmniSharp build for .NET 6 which does not support non SDK style .NET projects but results in performance improvements.
Fortunately you can disable this in the settings:
C# Extension Settings
Also, the C# extension no longer ships with an included Mono & MSBuild Tools. Download them here: Build Tools
Worst case, you can revert to an older extension version.
Go to extensions in VS Code and search for C# Extension
VS Code Extensions
Go to C# Extension settings
C# Extension Settings
Disable "Use Modern Net" option.
Modern Net Option
Restart VS Code
I haved similar problem and i fixed like this:
Im using win7 and i have VS 2019 IDE which not supporting dotnet 6 cuz of that vs_installer not installing dotnet6 sdk, in result i cant use c# extension v1.25.0 in vs code, because omnisharp needs net6. I installed net 6 sdk to my win7 and problem is solved, now i can use c# extension v1.25.0 in vs code.

Is there a ValueTask<T> in C# 7.0?

There are a few preliminary sources that mention that there is a new ValueTask in C# 7.0:
https://blogs.msdn.microsoft.com/dotnet/2016/08/24/whats-new-in-csharp-7-0/
http://intellitect.com/generalized-async-return-types/
But I am not able to find this type?
According to the documentation, System.Threading.Tasks.ValueTask<TResult> is in the System.Threading.Tasks.Extensions package.
For those still struggling to use ValueTask, the System.Threading.Tasks.Extensions Nuget package must still be installed. My system includes VS 2017 version 15.2 along with version 4.7 of the .NET Framework - and I still had to install the Nuget package.
To install the package, from VS 2017 click on the Project menu and select Manage Nuget Packages. In the search box, enter System.Threading.Tasks.Extensions and then install it. You should be good to go after this.

VS2010 and NuGet, why v2.8? How to get 3.5?

Beforehand: This is not a 'cut and clear' programming problem. It is a toolchain problem and I do not know other places to ask it. If this is not an apropriate place to ask, excusses and I will redraw my question.
I want to use NuGet on my VS2010-pro installation.
When I go to Tools -> Extention manager... tab [online galery] I get the option to download and install NuGet, but only for version 2.8.2 (2.8.60318.667) while the latest NuGet package is 3.5.0
I want to be 'up to date' so why settle for 2.8.3?
First I looked around for any reason why for VS2010 only 2.8.3 is available but could find no answers.
Then I installed 2.8.3 with the idea to look for updates/upgrades through NuGet and get to 3.5.0 but had no success. Can't find a way to upgrade!
I cannot find a good reason why I should settle for 2.8.3 and I cannot find a way to upgrade for the VS2010 tool version of NuGet.
But I can install the CLI version of 3.5.0 without any problems.
What is the reason that for VS2010 NuGet is limited to 2.8.0, is that the case anyway or do I mis something here?
If I install NuGet CLI 3.5.0 what problems will I get with VS2010 and the 2.8.3 version?
I looked around, read a lot about NuGet but can't find an answer to these questions.
Does anybody have an idea or who can point me to a location where I can find an answer?
Kind regards.
NuGet 2.8.3 is the latest version that supports VS2010. So you won't be able to use 3.5.0 from VS2010. Looks like 3.5.0 CLI is your best bet.

NuGet doesn't show items in feed, but can list via console

I recently upgraded to TeamCity 9, at first everything was okay. Then, for some unknown reason, I was unable to get a full list of available packages via the NuGet GUI. At first it appeared that all the portable class libraries where missing, then all of them went missing.
What I've tried:
I've removed all old artifacts from TeamCity,
I've deleted and reset TeamCity's cache
I've restarted TeamCity and its NuGet v1 service
I've rebuilt some basic class libries (PCL) with no dependencies.
I've cleared NuGet cache in my Visual Studio options.
I've ran VS as admin.
When I click on my TeamCity Feed in the package manager, it immediately returns no results with a very brief flash of "retrieving result".
Okay so the very odd thing is I can manually list (and install) my packages via the console:
PM> Get-Package -ListAvailable
Id Version Description/Release Notes
-- ------- -------------------------
RobGeoLtd.Core 1.0.2 Core Framework Portable Class Library
RobGeoLtd.Measurement 0.1.36 Defines units of measurement and conversion methods between them
PM> Install-Package RobGeoLtd.Core
Installing 'RobGeoLtd.Core 1.0.2'.
Successfully installed 'RobGeoLtd.Core 1.0.2'.
Adding 'RobGeoLtd.Core 1.0.2' to Logger.
Successfully added 'RobGeoLtd.Core 1.0.2' to Logger.
PM>
So yeah, I'm at a loss. NuGet bug? I'm all up-to-date as far as I can tell. :/
For anyone experiencing a similar issue:
I also tried all of the above. It turned out that my built packages were targeting .NET 4.5.2 and my project was targeting .NET 4.5.
It would appear to be a TeamCity issue. I reverted to a back up of the CI server running 8.1.4 and the old feed items have returned. I will attempt the upgrade again.
Update: Yup, its defiantly the upgrade from 8.1.4 to 9.0.3 that caused it. Will file a bug. https://youtrack.jetbrains.com/issue/TW-40589

Where'd the SlimDX NuGet package go?

I've been working on a SlimDX project from a couple of different machines lately. Today I went to pull down my code from SVN, and went through the dance of re-installing all the nuget packages referenced in the project, and I search for slimDX in Nuget, and nothing comes up.
Where'd the package go, and why was it taken down? It's not that rough to install the SDK instead, but NuGet is more convenient.
You can always just install the redistributable of slimdx, you don't need the entire sdk.

Resources