I've made a git rebase from master on the branch I'm working and after that every time I try to build my project it doesn't, and is showing me an error message, actually is showing several error messages but I think they are related to this one:
Unable to create a manifest resource name for
Migrations\24534563454_SomeFile.resx. Could not find file
'SomePath\MyProject\Migrations\24534563454_SomeFile.cs'
I've restarted VS, clean my project and rebuild it but the error persists.. maybe this has to do with the .csproj file? What should I do?
Following the link suggested by #kennyzx in the comment and the responses on that link, I saw that there was a yellow warning icon in the file within the Migrations folder in the Solution Explorer. I deleted that file and now it built correctly
Related
I am collaborating with 4 other members on an unity project, when I pulled the last version of the game, I tried to open it in unity. I got an error saying "The project you are opening contains a locked Library/SourceAssetsDB file".
Error
I couldn't find any relevant information on the internet.
I went into the project folder to see if maybe one file is enabled on read/write-only but this was false. Here a screenshot of the project folder, I am not sure if the file "SourceAssetDB-lock" is always there, that's why I post it here.
Project Structure
My C# program was running until I moved them around and now, it says I one of the forms can't be found. Attached are the warnings. I have tried everything so I'm afraid I'll have to manually edit the code... for the hundredth time... The missing form IS in the project folder, still it says the form can't be found. This form can't be re written because it's the one that's connected to my sql server.
Copy the project in other folder
Delete the debug folder and try to reload the project
if you get any message exclude the the debug folder
Rebuild the project
I hope this will work.
check all the paths and references you set are correct or clear all references and then give reference again. this is absolutely a path issue.
that's it.
i am currently facing a really weird and annoying error message after migrating my Xamarin.IOS - Project to the 64bit unified - API. The exact error message is:
/Users/falcowinkler/Dev/AHK_App -Kopie/AHK_App_iOS/../ahk_app_ios/resources/.DS_Store:
Error: The path '../ahk_app_ios/resources/.DS_Store' would result
in a file outside of the app bundle and cannot be used. (AHK_App_iOS).
I get that error not only for .DS_Store but also for two other files.
Here are the things i tried.
Clean / Rebuild
delete bin / obj Folder and rebuild
I deleted the files that throw the error, just to get another message that the project is missing these files. I added them again after that, and got the same error as above again
I tried moving my project to other locations, but the error does not change in the slightest.
I tried to remove all problematic files, before migrating, which didn't work as well.
Does anybody know where all the file references are stored in Xamarin, so i can view/edit them to find out what the error is?
I mean the DS_Store file is just a tiny file from mac - finder architecture, is not even necessary for my project, but still it is referencing it, i will just have to kick out these references i guess.
If anybody encountered these issues as well, and has a solution, pls leave a quick post here, thanks :)
Update
I am now pretty sure that there are some misplaced references to files in my project, i saw a similar issue on git hub. But how can i wipe them out? I tried removing my entire resources Folder and adding it again, but it didn't help either. Error message now looks as follows:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets:
Error: Bundle Resource '../ahk_app_ios/resources/.DS_Store'
not found on disk (should be at '/Users/falcowinkler/Documents/AHKKopie/ahk_app_ios/resources/.DS_Store') (AHK_App_iOS)
If anyone else has this problem, just search your project files for the filename. The .csproj File will appear, where you will be able to wipe out the reference to the file, causing the problem.
If you are using Xamarin Studio, you can delete the .DS_Store under your Ios project [ProjectName.iOS] under the Resources folder
Having problems with Team Foundation Server and Visual Studio where a file is in the project, but I'm getting a Check Out error saying that it either can't access the file or I don't have permission to do so.
Neither of which is true, I've checked the security settings on the file properties and they're the same on Service1.cs as everything else within the project.
Has anyone had the same/similar experience and know how to resolve this occurrence?
Picture for situation clarity:
Second, more clear image of Solution Explorer.
If those files exist in source control, do a get latest to bring down the file into your work space.
Remove the files from the source control and check in to TFS to remove the discrepancy.
Add the files back into the solution through the SC and check in, this should solve the issue and stop the error message. The solution explorer/source control/TFS will also all acknowledge that the files are there.
Because you doing copy paste service1.cs file. You service1.cs file right click and than Include Form Project Click
I downloaded the source code for this JiraSVN plugin, and opened the .sln file in VS2010. I was immediately greeted by this warning:
A custom tool 'SettingsSingleFileGenerator' is associated with file
'Properties\Settings.settings', but the output of the custom tool was
not found in the project. You may try re-running the custom tool
by right-clicking on the file in the Solution Explorer and choosing
Run Custom Tool.
I'm not familiar at all with this custom tool or what it is supposed to do, nor how to resolve the problem. (I tried the suggestion to right-click and re-run the custom tool, but nothing happened.)
When I attempt to build, it fails with this error:
Source file 'C:...\Properties\Settings.Designer.cs'
could not be opened ('Unspecified error ')
Taking a look at the Solution Explorer, I see the following entry under one of the projects:
└─Properties
└─/!\ Settings.settings
└─/!\ Settings.Designer.cs
(where the last two entries have exclamation point warning icons.)
I tried to exclude those two entries from the project, but got many more errors.
How do I resolve this? Is the build broke, or have I just failed to set something correctly?
I suddenly encountered this same error while attempting to compile my own saved code. The code would no longer compile, even though the last time I had saved it, everything was fine.
I simply deleted "SettingsSingleFileGenerator" from the Custom Tool line of the properties of the Settings file (mine was in My Project/Settings folder, your error message should tell you where this is located). Removing this allowed me to compile again smoothly.
In the context menu of your project go to Properties - Settings - "Click here to create ...". This created an empty properties file which sufficed for my project.
Well, the build was indeed broken. There is a fork by PatrickMauer that reconstructs the missing files.
Open the .csproj file in a text editor and remove the LastGenOutput tag. Visual Studio thinks that there was some error during settings file generation if the LastGenOutput tag is present and keeps issuing a warning during build.
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings1.Designer.cs</LastGenOutput>
</None>