Open ShwetaSalve opened 3 years ago
@ShwetaSalve hello,
Apologies for the confusion, the environment variable should point to an environment variable where the value is your connection string. please see the instructions below on how to set up the environment variable. note once you set up the env variable a restart of Visual studio/your PC may be required. Please let me know if this resolves your issue
enhttps://www.architectryan.com/2018/08/31/how-to-change-environment-variables-on-windows-10/
Hi Dave, Thanks for replying, we set up the environment variable for a connection string and used it in the configuration. props file and Clean and build are working fine now.
With this change, we don’t require the connection string property anymore in the .props.
However, since we have multiple Development instances of CRM, we need to add the environment variables for each instance respectively and on each user machine.
With the connection string property, it was a bit easy because with this we just needed to update the .prop file, and then it was applicable for all users who were working in respective repositories.
Is it possible to keep the connection string property instead of the Environment variable?
Thank You. Shweta Salve
From: Dave-Robertson92 @.> Sent: 07 July 2021 12:03 To: Capgemini/msbuild-xrm-sourcecontrol @.> Cc: Shweta Salve @.>; Mention @.> Subject: Re: [Capgemini/msbuild-xrm-sourcecontrol] Cannot bind argument to parameter 'environmentVariable' because it is an empty string. (#18)
@ShwetaSalvehttps://github.com/ShwetaSalve hello,
Apologies for the confusion, the environment variable should point to an environment variable where the value is your connection string. please see the instructions below on how to set up the environment variable. note once you set up the env variable a restart of Visual studio/your PC may be required. Please let me know if this resolves your issue
enhttps://www.architectryan.com/2018/08/31/how-to-change-environment-variables-on-windows-10/
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Capgemini/msbuild-xrm-sourcecontrol/issues/18#issuecomment-875509821, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUXUVAPCUTREBP5ATCFMPBTTWQX47ANCNFSM473KU2LQ.
Click herehttps://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== to report this email as spam.
@Dave-Robertson92 we are using Capgemini.Crm.VisualStudioExtensions" version="2.0.6" in our project, since it's not supporting Oauth authentication ,we changed it to
<package id="MsBuild.Xrm.SourceControl" version="3.0.0" targetFramework="net452" />
and changed the crmconfiguration.props file as follows,However, with the new .prop file
<EnvironmentVariableName>
property got introduced and In the description of the nugget package here we don't find any information around this property.Because of this property, we are not able to clean/ build our project and getting the error: Cannot bind argument to parameter 'environmentVariable' because it is an empty string.
Could you please help us with the missing property information, and what should we add here to make it work?