I tried to import a Visual Studio 2012 csproj file to Monodevelop. Everything works fine until I compile. When I compile the project, it generates 1 *.resources file for the first form, but for the following forms, no *.resources files are generated and the compile fails with
Error reading the resource file ... -- the system can't finde the file (CS1566)
(sorry - I had to translate from German)
How can I fix that?
Regards, Tobias
I had the same issue, I googled, and I found this link: https://github.com/gitextensions/gitextensions/issues/1751
as it says there, you have to use XBuild in MonoDevelop (go to Tools->Options->Projects->Build). That solved the problem for me.
Related
I want to use chisel3.2, and have installed "sbt" into Mac OS-X.
I wrote my project (Scala file), and downloaded template of project.
I did;
sbt
It did a lint of "scala" but did not import chisel3 object.
Indeed this is caused by PATH setting, but there is no information about it.
Does anyone suggest a solution?
I am getting the following error when i try to build an AspNetCore Web Application targeting netcoreapp2.2.
Error MSB4057 The target "ResolveTagHelperRazorGenerateInputs" does not exist in the project. C:\Program Files\dotnet\sdk\2.2.103\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets
I have tried the following:
clear cache on vs according to this post
update vs2017 to 15.9.5
reinstall net core sdks
reinstall vs
Nothing helped. I first got the error during an upgrade from core 2.1 to core 2.2 on a different project, and it's possible that by mistake edited the
Sdk.Razor.CurrentVersion.targets file. From that moment on, i keep getting this error on any project that targets core 2.2 (even new ones).
Does anyone encountered this problem or have any clues about solving it?
Thanks
After long battles it figured out to be a problem with VS NuGet Package Manager.
All I had to do was:
VS > Tools > Options > NuGet Package Manager > Clear All NuGet Cache(s).
The Following Link was my solution. I also struggled to get this fixed.
Just copy the files from the NetStandard2.0 folder from GitHub then replace it with you Directory from the same location.
Hopefully this helps someone.!
Here is the Answered Link:
https://social.msdn.microsoft.com/Forums/en-US/cafc9823-eb61-46f7-8489-007242ef2ad2/target-quotresolvetaghelperrazorgenerateinputsquot-does-not-exist-in-the-project?forum=msbuild
Here is the GitHub Link
https://github.com/aspnet/Razor/tree/master/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0
I encountered the same issue during the Azure build pipeline process, and clearing the NuGet package cache resolved the issue.
Solution:
I used a dotnet tasks with "custom" to issue the following command before NuGet package restore task:
command:
dotnet nuget locals global-packages -c
Screenshot shows the build pipeline task
For me the solution was as follows:
In Visual Studio
Right click on each project and click "Unload Project"
Right click on each project and click "Reload Project"
I created a new project in Angular, using Visual Studio.
I noticed the angular version that visual studio that was attributed to the project was the 5.2 version of Angular.
My client wants the version to specifically be the version 6 of Angular.
I researched and found out you could just change the version manually on the package.json file. I had an error after doing these changes to the file. I did find some posts here on stackoverflow , which say to run some commands like here.
But this hasn't worked out for me. I get this error:
"ERROR in node_modules/#angular/common/src/location/location.d.ts(1,10): error TS2305: Module '"C:/Users/ABCUSER/source/repos/ABC/ABC/ClientApp/node_modules/rxjs/Rx"' has no exported member 'SubscriptionLike'."
What else should I try?
my package.json file can be found here:
api.myjson.com/bins/e7rcc
Thanks in advance!
I ran into a error in visual studio 2017, I'm searching over the net but I don't find anything usefull, so my question is, how can I solve this:
Severity Code Description Project File Line Suppression State
Error Your project.json doesn't have a runtimes section. You should add '"runtimes": { "win": { } }' to your project.json and then re-run NuGet restore.
I was seaching for file where is located in my project but with no succsess.
Thanks
I got rid of this problem by manually deleting Visual Studio obj folder of the project that it's complaining about (the 'Clean Solution' command wasn't getting rid of it).
I found the answer through this and this threads.
I had the same issue after trying to migrate all my projects to the new .csproj format manually. I had an issue with one projet in the new format, so I reverted from git, and this message started to show up.
What I did:
Closed VS
Removed the .vs folder
Removed the packages folder
Restarted VS
Tried to build
Had issues with namespaces not found, as if packages were not installed
Opened NuGet package manager console
Ran Update-Package -reinstall -ProjectName <project>
Problem gone!
Hope it helps someone with the same issue :)
I upgraded a NuGet Package.
Then I undid some changes for the project, but the NuGet Packege had created a json file called project inside the project folder.
Inside this file, I could find runtimes.
But I just deleted this json file and built again.
I am creating an example for our next F# meetup and have run into an issue.
I have downloaded the FSharp.Data v2.2.1 to try the JSON tutorials to parse (stock options) data downloaded from the web. I have been struggling with this issue for almost a week now. I have followed the suggestions seen in other posts including complete uninstall of packages suggestion. I ran into the same issue trying to use the CSV provider and decided to switch to JSON.
I have #load #"C:\ full path to dll ...\lib\net40\FSharp.Data.dll" For some reason I have to give the full path for the F# script file to recognize it.
The line open FSharp.Data has an error "The namespace 'Data' is not defined"
Nuget package manager shows that FSharp.Data version:2.2.1 is installed.
I have uninstalled and reinstalled all packages in the project several times but it does not change the error.
So I am stuck at that point. I could use some insights from anyone who has been down this path.
The following steps worked for me. I started from a new F# project and did everything in F# Interactive.
Right click references folder in the project manager.
Select manage nuget packages
Install FSharp.Data
Reference the library in F# Interactive:
\#r #"C:\Users\{Full project path}\packages\FSharp.Data.2.2.1\lib\net40\FSharp.Data.DesignTime.dll";;
I get the warning that the library is locked. But F# Interactive allows me to open it.
Open the library:
open FSharp.Data;;
Run JsonProvider on file with data:
type Stocks = JsonProvider<"C:\msft.txt">;;