Skip to content

Commit 2549cf1

Browse files
authored
Merge pull request Azure#5016 from maddieclayton/startupscripts
Create separate folder per module containing scripts to be executed on import
2 parents 14ea68a + 0ade659 commit 2549cf1

File tree

130 files changed

+333
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+333
-320
lines changed

setup/azurecmdfiles.wxi

Lines changed: 88 additions & 60 deletions
Large diffs are not rendered by default.

src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Dataplane/Commands.AnalysisServices.Dataplane.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,16 @@
112112
</Compile>
113113
</ItemGroup>
114114
<ItemGroup>
115-
<None Include="AnalysisServicesDataplaneStartup.ps1">
116-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
117-
</None>
118115
<None Include="Azure.AnalysisServices.psd1">
119116
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
120117
</None>
121118
<None Include="MSSharedLibKey.snk" />
122119
<None Include="packages.config">
123120
<SubType>Designer</SubType>
124121
</None>
122+
<None Include="StartupScripts\*.ps1">
123+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
124+
</None>
125125
</ItemGroup>
126126
<ItemGroup>
127127
<EmbeddedResource Include="Properties\Resources.resx">

src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Dataplane/Commands/AddAzureASAccount.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace Microsoft.Azure.Commands.AnalysisServices.Dataplane
3232
[Cmdlet("Add", "AzureAnalysisServicesAccount", DefaultParameterSetName = "UserParameterSetName", SupportsShouldProcess =true)]
3333
[Alias("Login-AzureAsAccount")]
3434
[OutputType(typeof(AsAzureProfile))]
35-
public class AddAzureASAccountCommand : AzurePSCmdlet, IModuleAssemblyInitializer
35+
public class AddAzureASAccountCommand : AzurePSCmdlet
3636
{
3737
private const string UserParameterSet = "UserParameterSetName";
3838
private const string ServicePrincipalWithPasswordParameterSet = "ServicePrincipalWithPasswordParameterSetName";
@@ -189,22 +189,5 @@ public override void ExecuteCmdlet()
189189
WriteObject(asAzureProfile);
190190
}
191191
}
192-
193-
public void OnImport()
194-
{
195-
try
196-
{
197-
System.Management.Automation.PowerShell invoker = null;
198-
invoker = System.Management.Automation.PowerShell.Create(RunspaceMode.CurrentRunspace);
199-
invoker.AddScript(File.ReadAllText(FileUtilities.GetContentFilePath(
200-
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
201-
"AnalysisServicesDataplaneStartup.ps1")));
202-
invoker.Invoke();
203-
}
204-
catch
205-
{
206-
// This will throw exception for tests, ignore.
207-
}
208-
}
209192
}
210193
}

src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Dataplane/AnalysisServicesDataplaneStartup.ps1 renamed to src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Dataplane/StartupScripts/AnalysisServicesDataplaneStartup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
"Login-AzureAsAccount" = "Add-AzureAnalysisServicesAccount";
1717
"Restart-AzureAsInstance" = "Restart-AzureAnalysisServicesInstance";
1818
"Sync-AzureAsInstance" = "Sync-AzureAnalysisServicesInstance";
19-
}.GetEnumerator() | Select @{Name='Name'; Expression={$_.Key}}, @{Name='Value'; Expression={$_.Value}} | New-Alias -Description "AzureAlias"
19+
}.GetEnumerator() | Select @{Name='Name'; Expression={$_.Key}}, @{Name='Value'; Expression={$_.Value}} | Set-Alias -Description "AzureAlias"

src/ResourceManager/AnalysisServices/Commands.AnalysisServices/Commands.AnalysisServices.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
<None Include="packages.config">
7171
<SubType>Designer</SubType>
7272
</None>
73+
<None Include="StartupScripts\*.ps1">
74+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
75+
</None>
7376
</ItemGroup>
7477
<ItemGroup>
7578
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands.ApiManagement.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@
145145
<SubType>Designer</SubType>
146146
</None>
147147
<None Include="MSSharedLibKey.snk" />
148+
<None Include="StartupScripts\*.ps1">
149+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
150+
</None>
148151
</ItemGroup>
149152
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
150153
<Import Project="..\..\..\..\tools\Common.Dependencies.targets" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/ApplicationInsights/Commands.ApplicationInsights/Commands.ApplicationInsights.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<HintPath>..\..\..\packages\Microsoft.Azure.Management.ApplicationInsights.0.1.1-preview\lib\net452\Microsoft.Azure.Management.ApplicationInsights.dll</HintPath>
5555
<Private>True</Private>
5656
</Reference>
57-
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
57+
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
5858
</ItemGroup>
5959
<ItemGroup>
6060
<Compile Include="ApplicationInsights\GetApplicationInsightsApiKey.cs" />
@@ -96,6 +96,9 @@
9696
<None Include="packages.config">
9797
<SubType>Designer</SubType>
9898
</None>
99+
<None Include="StartupScripts\*.ps1">
100+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
101+
</None>
99102
</ItemGroup>
100103
<ItemGroup>
101104
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication.Abstractions\Commands.Common.Authentication.Abstractions.csproj">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@
202202
<None Include="packages.config">
203203
<SubType>Designer</SubType>
204204
</None>
205+
<None Include="StartupScripts\*.ps1">
206+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
207+
</None>
205208
</ItemGroup>
206209
<ItemGroup>
207210
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@
141141
<None Include="packages.config">
142142
<SubType>Designer</SubType>
143143
</None>
144+
<None Include="StartupScripts\*.ps1">
145+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
146+
</None>
144147
</ItemGroup>
145148
<ItemGroup>
146149
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/AzureBatch/Commands.Batch/Commands.Batch.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@
218218
<None Include="packages.config">
219219
<SubType>Designer</SubType>
220220
</None>
221+
<None Include="StartupScripts\*.ps1">
222+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
223+
</None>
221224
</ItemGroup>
222225
<ItemGroup>
223226
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/Billing/Commands.Billing/Commands.Billing.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
</None>
8282
<None Include="MSSharedLibKey.snk" />
8383
<None Include="packages.config" />
84+
<None Include="StartupScripts\*.ps1">
85+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
86+
</None>
8487
</ItemGroup>
8588
<ItemGroup>
8689
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/Cdn/AzureRM.Cdn.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ CmdletsToExport = 'Get-AzureRmCdnProfile', 'Get-AzureRmCdnProfileSsoUrl',
9191
# VariablesToExport = @()
9292

9393
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
94-
AliasesToExport = @()
94+
AliasesToExport = 'Validate-AzureRmCdnCustomDomain'
9595

9696
# DSC resources to export from this module
9797
# DscResourcesToExport = @()

src/ResourceManager/Cdn/Commands.Cdn/Commands.Cdn.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@
138138
<None Include="packages.config">
139139
<SubType>Designer</SubType>
140140
</None>
141-
<None Include="CdnStartup.ps1">
142-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
141+
<None Include="StartupScripts\*.ps1">
142+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
143143
</None>
144144
</ItemGroup>
145145
<ItemGroup>

src/ResourceManager/Cdn/Commands.Cdn/CustomDomain/NewAzureRmCdnCustomDomain.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
namespace Microsoft.Azure.Commands.Cdn.CustomDomain
3434
{
3535
[Cmdlet(VerbsCommon.New, "AzureRmCdnCustomDomain", DefaultParameterSetName = FieldsParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSCustomDomain))]
36-
public class NewAzureRmCdnCustomDomain : AzureCdnCmdletBase, IModuleAssemblyInitializer
36+
public class NewAzureRmCdnCustomDomain : AzureCdnCmdletBase
3737
{
3838
[Parameter(Mandatory = true, HelpMessage = "Host name (address) of the Azure CDN custom domain name.")]
3939
[ValidateNotNullOrEmpty]
@@ -101,22 +101,5 @@ private void NewCustomDomain()
101101
WriteVerbose(Resources.Success);
102102
WriteObject(customDomain.ToPsCustomDomain());
103103
}
104-
105-
public void OnImport()
106-
{
107-
try
108-
{
109-
System.Management.Automation.PowerShell invoker = null;
110-
invoker = System.Management.Automation.PowerShell.Create(RunspaceMode.CurrentRunspace);
111-
invoker.AddScript(File.ReadAllText(FileUtilities.GetContentFilePath(
112-
Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory),
113-
"CdnStartup.ps1")));
114-
invoker.Invoke();
115-
}
116-
catch
117-
{
118-
// This may throw exception for tests, ignore.
119-
}
120-
}
121104
}
122105
}

src/ResourceManager/Cdn/Commands.Cdn/CdnStartup.ps1 renamed to src/ResourceManager/Cdn/Commands.Cdn/StartupScripts/CdnStartup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
@{
1616
"Validate-AzureRmCdnCustomDomain" = "Test-AzureRmCdnCustomDomain";
17-
}.GetEnumerator() | Select @{Name='Name'; Expression={$_.Key}}, @{Name='Value'; Expression={$_.Value}} | New-Alias -Description "AzureAlias"
17+
}.GetEnumerator() | Select @{Name='Name'; Expression={$_.Key}}, @{Name='Value'; Expression={$_.Value}} | Set-Alias -Description "AzureAlias"

src/ResourceManager/CognitiveServices/Commands.Management.CognitiveServices/Commands.Management.CognitiveServices.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
<None Include="packages.config">
8787
<SubType>Designer</SubType>
8888
</None>
89+
<None Include="StartupScripts\*.ps1">
90+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
91+
</None>
8992
</ItemGroup>
9093
<ItemGroup>
9194
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication.Abstractions\Commands.Common.Authentication.Abstractions.csproj">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@
389389
<None Include="packages.config">
390390
<SubType>Designer</SubType>
391391
</None>
392+
<None Include="StartupScripts\*.ps1">
393+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
394+
</None>
392395
</ItemGroup>
393396
<ItemGroup>
394397
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/Compute/Stack/Commands.Compute/Commands.Compute.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,9 @@
471471
<None Include="packages.config">
472472
<SubType>Designer</SubType>
473473
</None>
474+
<None Include="StartupScripts\*.ps1">
475+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
476+
</None>
474477
</ItemGroup>
475478
<ItemGroup>
476479
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/Consumption/Commands.Consumption/Commands.Consumption.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
</None>
8282
<None Include="MSSharedLibKey.snk" />
8383
<None Include="packages.config" />
84+
<None Include="StartupScripts\*.ps1">
85+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
86+
</None>
8487
</ItemGroup>
8588
<ItemGroup>
8689
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/ContainerInstance/Commands.ContainerInstance/Commands.ContainerInstance.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
<None Include="packages.config">
8787
<SubType>Designer</SubType>
8888
</None>
89+
<None Include="StartupScripts\*.ps1">
90+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
91+
</None>
8992
<None Include="..\AzureRM.ContainerInstance.psd1">
9093
<Link>AzureRM.ContainerInstance.psd1</Link>
9194
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/ContainerRegistry/Commands.ContainerRegistry/Commands.ContainerRegistry.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
</None>
102102
<None Include="MSSharedLibKey.snk" />
103103
<None Include="packages.config" />
104+
<None Include="StartupScripts\*.ps1">
105+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
106+
</None>
104107
</ItemGroup>
105108
<ItemGroup>
106109
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication.Abstractions\Commands.Common.Authentication.Abstractions.csproj">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@
171171
<None Include="packages.config">
172172
<SubType>Designer</SubType>
173173
</None>
174+
<None Include="StartupScripts\*.ps1">
175+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
176+
</None>
174177
</ItemGroup>
175178
<ItemGroup>
176179
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/DataFactories/Commands.DataFactoryV2/Commands.DataFactoryV2.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@
172172
<None Include="packages.config">
173173
<SubType>Designer</SubType>
174174
</None>
175+
<None Include="StartupScripts\*.ps1">
176+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
177+
</None>
175178
</ItemGroup>
176179
<ItemGroup>
177180
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands.DataLakeAnalytics.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@
111111
</None>
112112
<None Include="MSSharedLibKey.snk" />
113113
<None Include="packages.config" />
114+
<None Include="StartupScripts\*.ps1">
115+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
116+
</None>
114117
</ItemGroup>
115118
<ItemGroup>
116119
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Commands.DataLakeStore.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@
117117
</None>
118118
<None Include="MSSharedLibKey.snk" />
119119
<None Include="packages.config" />
120+
<None Include="StartupScripts\*.ps1">
121+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
122+
</None>
120123
</ItemGroup>
121124
<ItemGroup>
122125
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/DevTestLabs/Commands.DevTestLabs/Commands.DevTestLabs.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
<None Include="packages.config">
8282
<SubType>Designer</SubType>
8383
</None>
84+
<None Include="StartupScripts\*.ps1">
85+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
86+
</None>
8487
<Compile Include="Commands\DtlPolicyCmdletBase.cs" />
8588
<Compile Include="Commands\Set\SetAzureRmDtlVMsPerUserPolicy.cs" />
8689
<Compile Include="Commands\Set\SetAzureRmDtlAllowedVMSizesPolicy.cs" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/Dns/Commands.Dns/Commands.Dns.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
<None Include="packages.config">
8181
<SubType>Designer</SubType>
8282
</None>
83+
<None Include="StartupScripts\*.ps1">
84+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
85+
</None>
8386
</ItemGroup>
8487
<ItemGroup>
8588
<EmbeddedResource Include="Properties\Resources.resx">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/EventGrid/Commands.EventGrid/Commands.EventGrid.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
9191
</None>
9292
<None Include="MSSharedLibKey.snk" />
9393
<None Include="packages.config" />
94+
<None Include="StartupScripts\*.ps1">
95+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
96+
</None>
9497
</ItemGroup>
9598
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
9699
<Import Project="..\..\..\..\tools\Common.Dependencies.targets" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

src/ResourceManager/EventHub/Commands.EventHub/Commands.EventHub.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
<None Include="packages.config">
9494
<SubType>Designer</SubType>
9595
</None>
96+
<None Include="StartupScripts\*.ps1">
97+
<!-- <CopyToOutputDirectory>Always</CopyToOutputDirectory> -->
98+
</None>
9699
</ItemGroup>
97100
<ItemGroup>
98101
<EmbeddedResource Include="Resources.resx" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Placeholder for future scripts: Please delete this file and uncomment <CopyToOutputDirectory>Always</CopytoOutputDirectory> within the <None Include="StartupScripts\*.ps1"> block in the .csproj file.

0 commit comments

Comments
 (0)