- Updated solution to VS2026
- Disabled Excel interop - Fixed maxDirDepth
This commit is contained in:
BIN
.vs/Permissions/v18/.suo
Normal file
BIN
.vs/Permissions/v18/.suo
Normal file
Binary file not shown.
37
.vs/Permissions/v18/DocumentLayout.backup.json
Normal file
37
.vs/Permissions/v18/DocumentLayout.backup.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "C:\\DEV\\SharePermissions_v2\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E7BE4322-832C-4C78-AD4F-E06F2A267CAA}|Permissions\\Permissions.csproj|c:\\dev\\sharepermissions_v2\\permissions\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E7BE4322-832C-4C78-AD4F-E06F2A267CAA}|Permissions\\Permissions.csproj|solutionrelative:permissions\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"DocumentGroupContainers": [
|
||||||
|
{
|
||||||
|
"Orientation": 0,
|
||||||
|
"VerticalTabListWidth": 256,
|
||||||
|
"DocumentGroups": [
|
||||||
|
{
|
||||||
|
"DockedWidth": 200,
|
||||||
|
"SelectedChildIndex": 0,
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 0,
|
||||||
|
"Title": "Form1.cs",
|
||||||
|
"DocumentMoniker": "C:\\DEV\\SharePermissions_v2\\Permissions\\Form1.cs",
|
||||||
|
"RelativeDocumentMoniker": "Permissions\\Form1.cs",
|
||||||
|
"ToolTip": "C:\\DEV\\SharePermissions_v2\\Permissions\\Form1.cs*",
|
||||||
|
"RelativeToolTip": "Permissions\\Form1.cs*",
|
||||||
|
"ViewState": "AgIAAFUDAAAAAAAAAAAewHIDAAASAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2026-05-27T07:58:02.468Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
37
.vs/Permissions/v18/DocumentLayout.json
Normal file
37
.vs/Permissions/v18/DocumentLayout.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "C:\\DEV\\SharePermissions_v2\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E7BE4322-832C-4C78-AD4F-E06F2A267CAA}|Permissions\\Permissions.csproj|c:\\dev\\sharepermissions_v2\\permissions\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E7BE4322-832C-4C78-AD4F-E06F2A267CAA}|Permissions\\Permissions.csproj|solutionrelative:permissions\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"DocumentGroupContainers": [
|
||||||
|
{
|
||||||
|
"Orientation": 0,
|
||||||
|
"VerticalTabListWidth": 256,
|
||||||
|
"DocumentGroups": [
|
||||||
|
{
|
||||||
|
"DockedWidth": 200,
|
||||||
|
"SelectedChildIndex": 0,
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 0,
|
||||||
|
"Title": "Form1.cs",
|
||||||
|
"DocumentMoniker": "C:\\DEV\\SharePermissions_v2\\Permissions\\Form1.cs",
|
||||||
|
"RelativeDocumentMoniker": "Permissions\\Form1.cs",
|
||||||
|
"ToolTip": "C:\\DEV\\SharePermissions_v2\\Permissions\\Form1.cs",
|
||||||
|
"RelativeToolTip": "Permissions\\Form1.cs",
|
||||||
|
"ViewState": "AgIAAAYAAAAAAAAAAAAAACAAAAAbAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2026-05-27T07:58:02.468Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -17,7 +17,7 @@ using System.Diagnostics;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Deployment;
|
using System.Deployment;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using Excel = Microsoft.Office.Interop.Excel;
|
//using Excel = Microsoft.Office.Interop.Excel;
|
||||||
|
|
||||||
namespace Permissions
|
namespace Permissions
|
||||||
{
|
{
|
||||||
@@ -30,7 +30,7 @@ namespace Permissions
|
|||||||
string getUserInfo = "sAMAccountName"; // TODO: Make configurable through UI
|
string getUserInfo = "sAMAccountName"; // TODO: Make configurable through UI
|
||||||
string ignoreGroupNameBegin = "BUILTIN,LOCAL,NT AUTHORITY,SYSTEM,S-"; // TODO: Make configurable through UI
|
string ignoreGroupNameBegin = "BUILTIN,LOCAL,NT AUTHORITY,SYSTEM,S-"; // TODO: Make configurable through UI
|
||||||
public static string startFolder = @""; // TODO: Obsolete, remove all references
|
public static string startFolder = @""; // TODO: Obsolete, remove all references
|
||||||
int maxDirDepth = 5;
|
int maxDirDepth = 1;
|
||||||
// END CONFIGURATION
|
// END CONFIGURATION
|
||||||
|
|
||||||
string groupNameStripBegin = Environment.UserDomainName + @"\";
|
string groupNameStripBegin = Environment.UserDomainName + @"\";
|
||||||
@@ -631,6 +631,7 @@ namespace Permissions
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
private void saveXLS(string savedFile)
|
private void saveXLS(string savedFile)
|
||||||
{
|
{
|
||||||
CultureInfo oldCI = Thread.CurrentThread.CurrentCulture;
|
CultureInfo oldCI = Thread.CurrentThread.CurrentCulture;
|
||||||
@@ -670,6 +671,7 @@ namespace Permissions
|
|||||||
if (oldCI != null)
|
if (oldCI != null)
|
||||||
{ Thread.CurrentThread.CurrentCulture = oldCI; }
|
{ Thread.CurrentThread.CurrentCulture = oldCI; }
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
private void saveCSV(string savedFile)
|
private void saveCSV(string savedFile)
|
||||||
{
|
{
|
||||||
@@ -706,7 +708,7 @@ namespace Permissions
|
|||||||
{ maxDirDept_plus = 1; }
|
{ maxDirDept_plus = 1; }
|
||||||
|
|
||||||
|
|
||||||
maxDirDepth = maxDirDepth + maxDirDept_plus;
|
maxDirDepth = maxDirDept_plus;
|
||||||
|
|
||||||
updateDebugInfo("Max dir depth set to:" + maxDirDepth);
|
updateDebugInfo("Max dir depth set to:" + maxDirDepth);
|
||||||
|
|
||||||
@@ -878,7 +880,7 @@ namespace Permissions
|
|||||||
if (savedFile.EndsWith(".xls"))
|
if (savedFile.EndsWith(".xls"))
|
||||||
{
|
{
|
||||||
updateDebugInfo("Saving as .xls file");
|
updateDebugInfo("Saving as .xls file");
|
||||||
saveXLS(savedFile);
|
//saveXLS(savedFile);
|
||||||
}
|
}
|
||||||
else if (Path.GetExtension(savedFile).ToLower() == ".csv" || Path.GetExtension(savedFile).ToLower() == ".txt")
|
else if (Path.GetExtension(savedFile).ToLower() == ".csv" || Path.GetExtension(savedFile).ToLower() == ".txt")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>Permissions</RootNamespace>
|
<RootNamespace>Permissions</RootNamespace>
|
||||||
<AssemblyName>SharePermissions</AssemblyName>
|
<AssemblyName>SharePermissions</AssemblyName>
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<ManifestCertificateThumbprint>F310EB7CA93BF5E37B87521DB1AAD8394E53E9D1</ManifestCertificateThumbprint>
|
<ManifestCertificateThumbprint>F310EB7CA93BF5E37B87521DB1AAD8394E53E9D1</ManifestCertificateThumbprint>
|
||||||
<ManifestKeyFile>Permissions_TemporaryKey.pfx</ManifestKeyFile>
|
<ManifestKeyFile>Permissions_TemporaryKey.pfx</ManifestKeyFile>
|
||||||
@@ -37,6 +37,7 @@
|
|||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@@ -46,6 +47,7 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
@@ -54,6 +56,7 @@
|
|||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ApplicationIcon>icon.ico</ApplicationIcon>
|
<ApplicationIcon>icon.ico</ApplicationIcon>
|
||||||
@@ -108,6 +111,7 @@
|
|||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<None Include="app.config" />
|
||||||
<None Include="Permissions_TemporaryKey.pfx" />
|
<None Include="Permissions_TemporaryKey.pfx" />
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PublishUrlHistory>publish\</PublishUrlHistory>
|
<PublishUrlHistory>publish\</PublishUrlHistory>
|
||||||
@@ -15,4 +15,7 @@
|
|||||||
<FallbackCulture>en-US</FallbackCulture>
|
<FallbackCulture>en-US</FallbackCulture>
|
||||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<EnableSecurityDebugging>false</EnableSecurityDebugging>
|
||||||
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
2
Permissions/Properties/Resources.Designer.cs
generated
2
Permissions/Properties/Resources.Designer.cs
generated
@@ -19,7 +19,7 @@ namespace Permissions.Properties {
|
|||||||
// class via a tool like ResGen or Visual Studio.
|
// class via a tool like ResGen or Visual Studio.
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
// with the /str option, or rebuild your VS project.
|
// with the /str option, or rebuild your VS project.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources {
|
internal class Resources {
|
||||||
|
|||||||
4
Permissions/Properties/Settings.Designer.cs
generated
4
Permissions/Properties/Settings.Designer.cs
generated
@@ -1,7 +1,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.34014
|
// Runtime Version:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
@@ -12,7 +12,7 @@ namespace Permissions.Properties {
|
|||||||
|
|
||||||
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "18.6.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|||||||
3
Permissions/app.config
Normal file
3
Permissions/app.config
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
|
||||||
Reference in New Issue
Block a user