I have a issue with custom configs, that added to the 'Azure Worker Role' project. I tryed to move connection strings declaration in the separate file and apply transformations to this file.
When I build or rebuild solution - all works fine. But when I run - I am getting following error:
Error 1 The item "bin\Debug\connectionStrings.config" in item list "OutputGroups" does not define a value for metadata "TargetPath". In order to use this metadata, either qualify it by specifying %(OutputGroups.TargetPath), or ensure that all items in this list define a value for this metadata. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows Azure Tools\1.8\Microsoft.WindowsAzure.targets 1663 5 SlowCheetahAzure
I use the .NET Framework 4.5, Windows Azure SDK for .NET 1.8 and MSVS 2012.
Also I make the test solution that you could use to reproduce this issue:
P.S.: One more man experienced this issue when try to use custom 'NLog' config with 'Azure' project:
It seems that some issues will never be read...
Sorry its not that I'm trying to ignore you, but I'm having a difficult time keeping up with the requests on this project.
Can you provide steps that I can follow to reproduce this from a new project?
Sorry, but when issue has no comments for long period of time it looks abandoned.
Here is scenario that you can use to reproduce this issue from a new project:
<add name = "MyConnString"
connectionString = "SomeConnStringData"
providerName = "System.Data.SqlClient" />
What we have:
The error that is not allow to start the cloud service project.
Error 1 The item "bin\Debug\connectionStrings.config" in item list "OutputGroups" does not define a value for metadata "TargetPath". In order to use this metadata, either qualify it by specifying %(OutputGroups.TargetPath), or ensure that all items in this list define a value for this metadata. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows Azure Tools\1.8\Microsoft.WindowsAzure.targets
What we need:
MSVS should run the cloud service project.
Thanks for the info I will take a look at it but I cannot comment as to when.
Thanks for the details here. I have updated the title of this issue, I am investigating. Should be included in the next release.
Updating AfterBuiltProjectOutputGroup to populate BuiltProjectOutputG…
…roupOutput using the full path to the file instead of the relative path. Related to issue #44
updating install manifest version to create a new vsix. related to #44
Hi @otakusid I think I have figured this out.
I have a fix available at https://dl.dropbox.com/u/40134810/SlowCheetah/issue-44/SlowCheetah-issue-44.zip. Could you try it out and let me know if you are still running into this?
I verified this fix. When I run solution no more error appeared. So looks like issue fixed!
I verified this fix on my second project and found that this issue is not fixed for referenced configs :(
How to reproduce:
This looks to be related to the fact that the files are linked. If the transforms are directly contained inside the project I do not receive an error. I'm looking into this to see what is happening here.
Fix to prevent build errors for Web Role when a non-app.config is bei…
…ng transformed. Resolved #44
I think I have fixed this. I have a new candidate VSIX at https://dl.dropbox.com/u/40134810/SlowCheetah/issue-44/SlowCheetah-issue-44-v2.zip.
Could you try it out and let me know if it resolves the issue for you?
I confirm that in the latest version issue fixed as for usual configs so and linked ones. Thank you!
Also I found one more issue related to linked non-app.config files #63. Could you please look at it?
Thanks @otakusid I just made some changes in commit 2ca26f0 for this.
I have updated the VSIX at https://dl.dropbox.com/u/40134810/SlowCheetah/issue-44/SlowCheetah-issue-44-v2.zip can you try again?
Work like a charm! Transformed linked non-app.configs placed in the approot.
I have released this feature on the VS gallery at http://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5 as well as in the NuGet package https://nuget.org/packages/PackageWeb.
If you have any issues let me know.
Thank you, tomorrow I will check this release version on our test environment.
Hi Sayed, I verified new version on our test environment - all works fine. Also you could close #63 - it is fixed.
Thanks, I've closed it.