දෘශ්‍ය ස්ටුඩියෝ ව්‍යාපෘති සහ විසඳුම් සඳහා


1153

විෂුවල් ස්ටුඩියෝ විසඳුම් ( ) සහ ව්‍යාපෘති සමඟ ඒකාබද්ධව Git.gitignore භාවිතා කරන විට මා ඇතුළත් කළ යුතු ගොනු මොනවාද?.sln



1
මම මෙය ප්‍රජා විකියක් බවට පත් කර ඇති අතර දැනට පවතින සියලුම පිළිතුරු තනතුරට ඒකාබද්ධ කර ඇත්තෙමි. සුදුසු යැයි පෙනෙන පරිදි කරුණාකර දායක වන්න!
මාටින් සුචනෙක්


2
ur මුර්කි - පෙනෙන ආකාරයට පිළිතුර: coderjournal.com/2011/12/…
රොනී ඕවර්බි

7
සමග .slnගොනු පරීක්ෂා, අපි ශබ්ද වැනි diffs ලබා -# Visual Studio 14 -VisualStudioVersion = 14.0.24720.0 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 මෙම වැළැක්විය හැකිද?
ජීන් ජෝර්දාන්

Answers:


599

නිල GitHub හි "ප්‍රයෝජනවත් .gitignore සැකිලි එකතුව " බලන්න .

මෙම .gitignoreවිෂුවල් ස්ටුඩියෝ සඳහා මෙහි සොයා ගත හැකි ය:
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore


8
කරුණාකර සටහන් කර ගන්න. මෙම ගොනුවේ ප්‍රකාශිත ගොනු නොසලකා හැරීමේ ප්‍රවේශයක් අඩංගු වේ. රීතිය ලියා ඇති ආකාරය කෙසේ වෙතත්, එය ඔබ "ප්‍රකාශනය" යනුවෙන් හැඳින්වූ ඕනෑම ෆෝල්ඩරයක් නොසලකා හරිනු ඇති අතර, ඔබට යටින් ඇති ඕනෑම දෙයක් නොසලකා හරිනු ඇත. එය විශේෂයෙන් දෘශ්‍ය ස්ටුඩියෝ “ප්‍රකාශන” ප්‍රතිදානය ඉලක්ක නොකරයි. එය නොසලකා හරිනු ඇත, නමුත් වෙනත් දේ.
රෙක්ස් විට්න්

6
arstarfighterxyz ගිටිග්නෝර් හි දෝෂයක් ඇතැයි ඔබ සිතන්නේ නම්, අදින්න ඉල්ලීමක් නිර්මාණය කිරීමට මම නිර්දේශ කරමි.
Chronial

9
හොඳයි, එහි දෝෂයක් පැවසීමට (ප්‍රමාණවත්ද?) මම නොදනිමි. ප්‍රකාශක / පාලක නාමයක් ලෙස සහ ව්‍යාපෘති ෆෝල්ඩරයේ නම් ලෙස භාවිතා කිරීම ගැන මම සතුටු වෙමි. මම හිතන්නේ මෙය එජ් කේස් එකක් පමණයි. ඔබේ ජීවිතයේ පැය කිහිපයක් ඉතිරි කර ගැනීමට යමක් :)
රෙක්ස් විට්න්

2
EarLearner මේවා විවිධ ලිපිගොනු වල ඇති නිසා. ඔබ ඒවා පරීක්ෂා කිරීම වෙනුවට ඔබේ පුද්ගලික ගෝලීය ගිටිග්නෝර් වෙත එකතු කළ යුතුය. Github.com/github/gitignore/tree/master/Global
Chronial

1
Ri එරික් ඇරොනෙස්ටි ඔබට ගිතුබ් රෙපෝ හි ගැටළුවක් හෝ පීආර් එකක් සෑදිය හැකිය. නමුත් *.userදැනටමත් නොසලකා හැර ඇත, එයට ඇතුළත් වේ .vcxproj.user.
Chronial

257

ඔබේ මෙහෙයුම් පද්ධතිය, IDE, භාෂාව යනාදිය මත පදනම්ව .gitignore ගොනුවක් ජනනය කිරීමට ඉඩ සලසන මාර්ගගත මෙවලමක් ඇත . Http://www.gitignore.io/ බලන්න .

රූප විස්තරය මෙහි ඇතුළත් කරන්න

8/20/2014 දින, දෘශ්‍ය ස්ටුඩියෝ + වින්ඩෝස් සඳහා ජනනය කරන ලද ගොනුව මෙන්න.

# Created by http://www.gitignore.io

### VisualStudio ###
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# Roslyn cache directories
*.ide/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

#NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding addin-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings 
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# If using the old MSBuild-Integrated Package Restore, uncomment this:
#!**/packages/repositories.config

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/


### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

ඉතා මැනවින්, එයට ගොනුව තුළ බලපත්‍රයක් ඇතුළත් වේ. (ඉතා මැනවින්, එය ආයතනික පරිසරයක් තුළ කිසිදු ප්‍රශ්නයක් මතු නොකරන බලපත්‍රයක් වනු ඇත.)
එව්ගනි සර්ජිව්

එසේම, මෙම යුතුව .vs/: මෙහි දකින stackoverflow.com/a/31879242/1143274
Evgeni Sergeev

111

C # ව්‍යාපෘති සඳහා මම පහත සඳහන් .gitignore භාවිතා කරමි. අමතර රටාවන් අවශ්‍ය විටදී සහ එකතු කළ විට.

[Oo]bj
[Bb]in
*.user
*.suo
*.[Cc]ache
*.bak
*.ncb
*.log 
*.DS_Store
[Tt]humbs.db 
_ReSharper.*
*.resharper
Ankh.NoLoad

2
සමග එකඟ නොවන්න *.resharper. ලිපිගොනු ගැලපීම *.ReSharper.userනොසලකා හැරිය යුතුය, නමුත් එය *.userඉහත රීතියට අනුකූල වේ.
ඩ්‍රූ නොක්ස්

1
Rew ඩ්‍රූනෝක්ස්: සංශෝධන පාලනය කළ යුතු යැයි ඔබ විශ්වාස කරන රීෂාපර් ගොනු මොනවාද?
පර් ලුන්ඩ්බර්ග්

4
ErPerLundberg සලකා බැලිය යුතු එක් හේතුවක් නම් ඔබට සම්මත ව්‍යාපෘති ආකෘතිකරණ විකල්පයන් වින්‍යාසගත කළ හැකි අතර වින්‍යාස ගොනු ගොනුව ව්‍යාපෘතිය සමඟ සුරකින්න. මෙය git හි තිබේ නම්, Resharper භාවිතා කරන සෑම කෙනෙකුටම ව්‍යාපෘතිය නිරන්තරයෙන් සංයුති කර තබා ගැනීම පහසු කරයි.
මාක්

Rew ඩ්‍රූනෝක්ස් - කරුණාකර මේ සඳහා යෝජනා තිබේද?
සමීර්

44

මයික්‍රොසොෆ්ට් සිතන දේ ගැන උනන්දුවක් දක්වන අය Visual Studio 2013 RTMසඳහා, නව Git-Repository එකක් නිර්මාණය කිරීමේදී ස්වයංක්‍රීයව ජනනය වන පෙරනිමිය මෙන්න :

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf


#LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac desktop service store files
.DS_Store

බලන්න: MSDN හි සුපුරුදු .gitignore ගොනුවක් එක් කරන්න


37

ඔබ ඔබේ NuGet packages.config ගොනුව තබා ගත යුතු අතර, ඔබ පැකේජ ෆෝල්ඩරය බැහැර කළ යුතුය:

#NuGet
packages/

මම සාමාන්‍යයෙන් ද්විමය හෝ මගේ ප්‍රභවයෙන් ජනනය කරන කිසිවක් ප්‍රභව පාලනයේ ගබඩා නොකරමි. කෙසේ වෙතත් මේ සම්බන්ධයෙන් විවිධ මත තිබේ. එය ඔබගේ ගොඩනැගීමේ පද්ධතියට දේවල් පහසු කරයි නම්, එය කරන්න! කෙසේ වෙතත්, මම තර්ක කරන්නේ ඔබ මෙම පරායත්තතාවයන් සංස්කරණය නොකරන බවයි, එබැවින් ඔවුන් ඔබේ ගබඩාවේ ඉඩ ලබා ගනී. ද්විමය කේන්ද්‍රීය ස්ථානයක ගබඩා කිරීම, පසුව කුමන අනුවාදය අවශ්‍ය දැයි දැක්වීමට packages.config ගොනුව මත විශ්වාසය තැබීම වඩා හොඳ විසඳුමක් බව මගේ මතයයි.


4
ඔබට පැකේජ ෆෝල්ඩරය බැහැර කිරීමට අවශ්‍ය ඇයිද යන්න විස්තර කිරීමට කිසිවෙකු උනන්දු වන්නේද? පරායත්තතාවයන් ඇති කිරීම සඳහා බිල්ඩ් සේවාදායකය සඳහා පැකේජ ඇතුළත් කිරීම තේරුමක් නැතිද?
ජොයෙල් මාටිනස්

14
මෙම ගැටළුව සඳහා නියුජෙට් කණ්ඩායම 'පැකේජ ප්‍රතිස්ථාපනය' විශේෂාංගය ක්‍රියාත්මක කළ බව සඳහන් කිරීම වටී. එය තියෙනවා ලියවිල්ල ද NuGet අඩවියේ විශේෂාංගය පැහැදිලි හා විෂුවල් ස්ටුඩියෝ එය භාවිතා කරන ආකාරය විස්තර කරන.
ajk

4
ඔබ පැකේජ නොසලකා හැර නුගට් පැකේජ ප්‍රතිස්ථාපනය භාවිතා කරන්නේ නම්, nuget.exe ට ඉඩ දීම ප්‍රයෝජනවත් වේ. යමෙකු බාගත කළ විට, විසඳුම සඳහා විශේෂාංගය සක්‍රීය කර ඇති බව VS ට පැවසීමට මෙය කියයි: !NuGet.exe<- මෙම ගොනුව නොසලකා හරින්න එපා.
danludwig

ඔබ AppHarbor භාවිතා කරන අය සඳහා, පැකේජ ෆෝල්ඩරය බැහැර කිරීමෙන් ඔබේ ගොඩනැගීම අසාර්ථක වීමට හේතු වන බව සඳහන් කිරීම වටී :)
ජොයෙල් මාටිනස්

18

අවශ්‍ය පරිදි දේවල් බැහැර කිරීමට මම කැමැත්තෙමි. වෙඩි තැබීමේ තුවක්කුව නමින් "බින්" හෝ "ඕබ්" යන වචන වලින් සියල්ල බැහැර කිරීමට ඔබට අවශ්‍ය නැත. අවම වශයෙන් කප්පාදුවක් ඇති අය අනුගමනය කිරීමට වග බලා ගන්න.

VS2010 ව්‍යාපෘතියකින් මා ආරම්භ කරන්නේ මෙන්න:

bin/
obj/
*.suo
*.user

මම ReSharper භාවිතා කරන නිසා පමණක් මෙයද:

_ReSharper*

එකඟ වන්න. එසේම, මෙය "නිදොස්කරණය" සඳහා යයි. නමේ නිදොස්කරණය සමඟ ලිපිගොනු නොසලකා හැරීම සඳහා මේ සඳහා පසුපස කප්පාදුව එක් කරන්න.
ජෝන් කෝර්ස්නස්

18

මෙය පැරණි ප්‍රශ්නයක් බව මට වැටහී ඇත, තවමත් තොරතුරු බෙදා ගැනීම. විෂුවල් ස්ටුඩියෝ 2017 දී, ඔබට විසඳුම් ගොනුව මත දකුණු ක්ලික් කර ප්‍රභව පාලනයට එකතු විසඳුම තෝරන්න

රූප විස්තරය මෙහි ඇතුළත් කරන්න

මෙය ඔබගේ ප්‍රභව ෆෝල්ඩරයට ගොනු දෙකක් එක් කරයි.

  1. .ගිටැට්රිබියුට්ස්
  2. .ගිටිගෝර්

මෙය පහසුම ක්‍රමයයි.


12

විෂුවල් ස්ටුඩියෝ 2015 කණ්ඩායම් ගවේෂක> දේශීය Git නිධි> ව්‍යාපෘතිය> සැකසීම්> Git> නිධිය සැකසීම්> ලිපිගොනු නොසලකා හරින්න. ඔබට අයිතම සමඟ .gitignore ගොනුව එකතු කළ හැකිය. රූප විස්තරය මෙහි ඇතුළත් කරන්න

රූප විස්තරය මෙහි ඇතුළත් කරන්න


11

විෂුවල් ස්ටුඩියෝ 2015 යාවත්කාලීන 3 හි, සහ අද (2016-10-24) වන විට Git දිගුව යාවත්කාලීන කර ඇති විට, විෂුවල් ස්ටුඩියෝ විසින් ජනනය කරන ලද .ගිටිග්නෝර් :

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
[Xx]64/
[Xx]86/
[Bb]uild/
bld/
[Bb]in/
[Oo]bj/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

# DNX
project.lock.json
artifacts/

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml

# TODO: Un-comment the next line if you do not want to checkin 
# your web deploy settings because they may include unencrypted
# passwords
#*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

# Microsoft Azure Build Output
csx/
*.build.csdef

# Microsoft Azure Emulator
ecf/
rcf/

# Microsoft Azure ApplicationInsights config file
ApplicationInsights.config

# Windows Store app package directory
AppPackages/
BundleArtifacts/

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# GhostDoc plugin setting file
*.GhostDoc.xml

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# LightSwitch generated files
GeneratedArtifacts/
ModelManifest.xml

# Paket dependency manager
.paket/paket.exe

# FAKE - F# Make
.fake/

3
මම මෙම කොටස ආදරෙයි:Backup & report files from converting an old project file to a newer Visual Studio version. Backup files are not needed, because we have git ;-)
ජීන්කාර්ලෝ ෆොන්ටල්වෝ

9

ගොඩනැඟිලි යෙදවීම සඳහා InstallShield නොසලකා හැර ඇත. InstallShield යනු මයික්‍රොසොෆ්ට් හි දෘශ්‍ය ස්ටුඩියෝ ස්ථාපකය හරහා ගමන් කරන නව දිශාවයි, එබැවින් අපි එය සියලු නව ව්‍යාපෘති සඳහා භාවිතා කිරීමට පටන් ගෙන ඇත්තෙමු. මෙම එකතු කළ පේළිය SingleImage ස්ථාපන ගොනු ඉවත් කරයි. වෙනත් InstallShield වර්ග වලට DVD බෙදා හැරීම ඇතුළත් විය හැකිය. InstallShield LE යෙදවුම් ලිපිගොනු ගබඩාවට ඇතුල් වීම වැළැක්වීම සඳහා ඔබට එම නාමාවලි නම් හෝ [Ee] xpress / එක් කිරීමට අවශ්‍ය විය හැකිය.

ස්ථාපකය සඳහා සිංගල් ඉමේජ් යෙදවුම් සමඟ පලිහ ස්ථාපනය කරන්න භාවිතා කරමින් VS2010 C # ව්‍යාපෘති සඳහා අපගේ .gitignore මෙන්න:

#OS junk files
[Tt]humbs.db
*.DS_Store

#Visual Studio files
*.[Oo]bj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.vssscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.[Cc]ache
*.ilk
*.log
*.lib
*.sbr
*.sdf
ipch/
obj/
[Bb]in
[Dd]ebug*/
[Rr]elease*/
Ankh.NoLoad

#InstallShield
[Ss]ingle[Ii]mage/
[Dd][Vv][Dd]-5/
[Ii]nterm/

#Tooling
_ReSharper*/
*.resharper
[Tt]est[Rr]esult*

#Project files
[Bb]uild/

#Subversion files
.svn

# Office Temp Files
~$*

1
ජේම්ස් ග්‍රෙගරිගේ ප්‍රකාශය මම මෙහි උපුටා දක්වන්නෙමි: ".exe සහ .pdb හි නොසලකා හැරීමට මම ප්‍රවේශම් වන්නෙමි, ඔබ ඔබේ ප්‍රභවය සමඟ ගබඩා කර ඇති මෙවලම් නොදැනුවත්වම නොසලකා හැරිය හැකිය (නැන්ට්, නුනිට් ගුයි, ආදිය ...) - ජේම්ස් ග්‍රෙගරි මැයි 21 '10 දී 13:32 "
ජිම් රේඩන්

1
සමග එකඟ නොවන්න *.resharper. ලිපිගොනු ගැලපීම *.ReSharper.userනොසලකා හැරිය යුතුය, නමුත් එය *.userඉහත රීතියට අනුකූල වේ.
ඩ්‍රූ නොක්ස්

පැහැදිලි කිරීමක් පමණි - එය ඇත්ත වශයෙන්ම දෘශ්‍ය ස්ටූඩියෝ ස්ථාපකයට පෙර පැවති ඉන්ස්ටෝල්ෂීල්ඩ් වෙත ආපසු ගමන් කරයි, අවම වශයෙන් 1998 තරම් back තට!
මැටිසන්

7

මෙය පැරණි නූලක් බව මම දනිමි, නමුත් මෙම පිටුවට පැමිණෙන නව සහ පැරණි අය සඳහා, මෙම ලිපිගොනු ජනනය කළ හැකි gitignore.io නම් වෙබ් අඩවියක් ඇත. වෙබ් අඩවියට ගොඩ වූ පසු "දෘශ්‍යස්ටූඩියෝ" සොයන්න, එය ඔබ වෙනුවෙන් මෙම ලිපිගොනු ජනනය කරනු ඇත, එසේම ඔබට එක් ලේඛනයකට සමගාමීව ගොනු නොසලකා හැරීමට විවිධ භාෂා / අයිඩීස් තිබිය හැකිය.

ලස්සනයි.


6

මෙන්න .gitignoreමම මෑතකදී වැඩ කරමින් සිටි ව්‍යාපෘතියක උපුටා ගැනීමකි . සම්පාදන ප්‍රතිදානයන් ඇතුළුව විෂුවල් ස්ටුඩියෝවට සම්බන්ධ යැයි මා විශ්වාස කරන ඒවා උපුටා ගත්තෙමි; එය හරස් වේදිකා ව්‍යාපෘතියකි, එබැවින් වෙනත් ගොඩනැඟිලි පද්ධති විසින් නිපදවන ලිපිගොනු සඳහා නොසලකා හැරීමේ නීති රාශියක් ඇත, තවද මම ඒවා හරියටම වෙන් කළ බවට සහතික විය නොහැක.

*.dll
*.exe
*.exp
*.ilk
*.lib
*.ncb
*.log
*.pdb
*.vcproj.*.user
[Dd]ebug
[Rr]elease

සමහර විට මෙම ප්‍රශ්නය ප්‍රජා විකිය විය යුතුය, එබැවින් අප සියලු දෙනාටම එක් ප්‍රධාන ලැයිස්තුවක් සංස්කරණය කළ හැක්කේ කුමන ආකාරයේ ව්‍යාපෘති සඳහා නොසලකා හැරිය යුතුද?


තවත් පිළිතුරක් පිළිබඳ ජේම්ස් ග්‍රෙගරිගේ ප්‍රකාශය බලන්න: “.exe සහ .pdb නොසලකා හැරීම ගැන මම ප්‍රවේශම් වන්නෙමි, ඔබ ඔබේ ප්‍රභවය සමඟ ගබඩා කරන මෙවලම් නොදැනුවත්වම නොසලකා හැරිය හැකිය (නැන්ට්, නුනිට් ගුයි, ආදිය ...) - ජේම්ස් ග්‍රෙගරි මැයි 21 '10 at 13:32 "
ජිම් රේඩන්

2
Im ජිම්රාඩන් පොදුවේ ගත් කල, ද්විමය මෙවලම් Git වෙත පරීක්ෂා කිරීමෙන් වැළකී සිටීම වඩාත් සුදුසුය. හොඳම භාවිතයන් වන්නේ ඔබේ මූලාශ්‍රය Git වෙත පමණක් පරීක්ෂා කිරීමයි; ඔබට ද්විමය මෙවලම් අවශ්‍ය නම්, ඒවා ස්ථාපනය කිරීම සඳහා පිටපතක් හෝ එම මෙවලම් සමඟ උප මොඩියුලයක් ඇතුළත් කරන්න.
බ්‍රයන් කැම්බල්

6

මේ සඳහා ජෙන්ස් ලේමන්ට ණය - ඔබ ඔබේ සම්පාදක ව්‍යාපෘති ලිපිගොනු වලට වෙන වෙනම මූලාශ්‍ර නාමාවලි තබා ප්‍රතිදානය ගොඩනඟන්නේ නම්, එය ප්‍රතික්ෂේප කිරීමෙන් ඔබේ .ගිටිග්නෝර් සරල කළ හැකිය:

path/to/build/directory/*
!*.sln
!*.vcproj

ඔබ භාවිතා කරන්නේ කුමන භාෂාවද යන්න ඔබ නොකියයි, නමුත් ඉහත සඳහන් කළ යුත්තේ C ++ ව්‍යාපෘති සඳහා ය.


.Gitignore හි නිෂේධන ධජයක් ඇති බව මා දැන සිටියේ නැත. ප්‍රයෝජනවත් ඉඟිය!
ජිම් රේඩන්

6

මෙහි සාදයට ප්‍රමාද වූ නමුත් මම පහත සඳහන් දෑ භාවිතා කරන බව ද මට පෙනේ. සමහර ඒවා ප්‍රයෝජනවත් විය හැක්කේ පොදු දුරස්ථයකට තල්ලු කිරීමේදී සංවේදී ලිපිගොනු සැඟවීමට පමණි .

#Ignore email files delivered to specified pickup directory
*.eml

#Allow NuGet.exe (do not ignore)
!NuGet.exe

#Ignore WebDeploy publish profiles
*.Publish.xml

#Ignore Azure build csdef & Pubxml files
ServiceDefinition.build.csdef
*.azurePubxml

#Allow ReSharper .DotSettings (for non-namespace-provider properties)
!*.csproj.DotSettings

#Ignore private folder
/Private/

නවතම අනුවාදයට පැහැදිලිවම unugore nuget.exe අවශ්‍ය නොවේ
tofutim

f ටෝෆුටිම්, එහි නවතම අනුවාදය කුමක්ද? git ම?
danludwig


4

විෂුවල් ස්ටුඩියෝ හි කෙටිමඟක් ඇත, මන්ද එය 2015 හෝ ඊට ඉහළින් Git කොටුවෙන් පිටතට සහාය වන බැවිනි. නව විසඳුම් සඳහා (හෝ .gitෆෝල්ඩර නොමැති සමහරක් ) සොලියුෂන් එක්ස්ප්ලෝරර් හි ප්‍රභව පාලන අංග භාවිතා කරන්න :

ඔබගේ විසඳුම මත දකුණු-ක්ලික් කර Add Solution to Source Control...උත්පතන මෙනුවේ අයිතමය තෝරන්න .

එය ස්වයංක්‍රීයව .gitනිධිය ආරම්භ කරයි, .gitignore ඔබේ විසඳුමට අවශ්‍ය දෑ එකතු කරයි සහ .gitattributesගොනුව පවා (රේඛා අවසානය, ආදිය).

පෙළ VS කොන්සෝලය තුළ දිස්වනු ඇත:

A new Git repository has been created for you in C:\<path to your solution>
Commit ______ created locally in repository.

කළා!


3

මෙන්න මගේ ගොනුව සඳහා මගේ .NET ව්‍යාපෘති වල භාවිතා කරන දේ.gitignore .

[Oo]bj/
[Bb]in/
*.suo
*.user
/TestResults
*.vspscc
*.vssscc

මෙය බොහෝ එම්එස් ප්‍රවේශයක් වන අතර එය දෘශ්‍ය ස්ටුඩියෝ පරීක්ෂකය තුළ ගොඩනගා ඇති අතර එහි ටීඑෆ්එස් බන්ධන කිහිපයක් තිබිය හැකි ව්‍යාපෘතියකි.


3

වෙනත් පෝස්ටරයක සඳහන් කළ පරිදි, විෂුවල් ස්ටුඩියෝ විසින් එහි .gitignore හි කොටසක් ලෙස ජනනය කරයි (අවම වශයෙන් MVC 4 සඳහා):

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

ඔබේ ව්‍යාපෘතිය ඔබේ විසඳුමේ උප ෆෝල්ඩරයක් විය හැකි අතර .gitignore ගොනුව විසඳුම් මූලයේ ගබඩා කර ඇති බැවින් මෙය ඇත්ත වශයෙන්ම දේශීය දත්ත සමුදා ගොනු ස්පර්ශ නොකරනු ඇත (Git ඒවා දකිනු ඇත projectfolder/App_Data/*.mdf). මේ සඳහා මම එම රේඛා වෙනස් කළෙමි:

# SQL Server files
*App_Data/*.mdf
*App_Data/*.ldf

1
ඇත්ත වශයෙන්ම, git උප බහලුම් වලට සාපේක්ෂව රටාවන්ට ගැලපේ, ඔබ ඒවා " /" සමඟ ආරම්භ නොකරන්නේ නම්, ඒවා .gitignoreගොනුවට සමාන ඩිරෙක්ටරියේ පමණක් ගැලපේ .
SamB

1

කණ්ඩායම් එක්ස්ප්ලෝරර් හි සැකසීම් දර්ශනයට ගොස් නිධිය සැකසීම් තේරීමෙන් ඔබට ඔබේ .gitignore ගොනුව ඔබේ ගබඩාව සඳහා නිර්මාණය කිරීමට හෝ සංස්කරණය කිරීමට හැකිය. ඔබගේ .gitignore සඳහා සංස්කරණය තෝරන්න.

එය ස්වයංක්‍රීයව පෙරහන් නිර්මාණය කරන අතර එමඟින් සියලු VS විශේෂිත ගොඩනැගිලි නාමාවලි නොසලකා හරිනු ඇත.

රූප විස්තරය මෙහි ඇතුළත් කරන්න

වැඩි විස්තර මෙහි බලන්න .


0

සමහර ව්‍යාපෘති *.manifestඔවුන්ගේ දෘශ්‍ය චිත්‍රාගාර gitignore.ioගොනුවට එක් කිරීමට අවශ්‍ය විය හැකිය .

එයට හේතුව නව ව්‍යාපෘතිවල සමහර දෘශ්‍ය ස්ටුඩියෝ ව්‍යාපෘති ගුණාංග මැනිෆෙස්ට් ගොනුවක් ජනනය කිරීමට සකසා ඇති බැවිනි.

"බලන්න විෂුවල් ස්ටුඩියෝ දී දැකගත පරම්පරාවේ "

නමුත් ඔබ ඒවා ජනනය කර ඇති අතර ඒවා ස්ථිතික නම් (කාලයත් සමඟ වෙනස් නොවේ), එවිට ඒවා .gitignoreගොනුවෙන් ඉවත් කිරීම හොඳ අදහසකි .

Git for Windows වැනි ව්‍යාපෘතියක් දැන් කළේ එයයි (Git 2.24, Q4 2019 සඳහා)

ශුද්ධාසනයේ aac6ff7 සිදු විසින් (05 සැප්තැම්බර් 2019) (ජොහැන්නස් Schindelin dscho) .
(විසින් අලුතින් ඒකාබද්ධ ජූනි සී Hamano - gitster- දී 59438be සිදු , 30 සැප්තැම්බර් 2019)

.gitignore: .manifestගොනු නොසලකා හැරීම නවත්වන්න

වින්ඩෝස් හි, "මැනිෆෙස්ට්" එකකට සම්බන්ධ කිරීමෙන් අතිරේක පාර-දත්ත ක්‍රියාත්මක කළ හැකි ය, එනම් හැකියාවන් සහ අවශ්‍යතා විස්තර කරන එක්ස්එම්එල් ලේඛනයක් (අවම හෝ උපරිම වින්ඩෝස් අනුවාදය වැනි) ඇතුළත් කළ හැකිය.
මෙම XML ලේඛන ලිපිගොනු වල ගබඩා කිරීමට බලාපොරොත්තු වේ .manifest.

අවම වශයෙන් සමහර දෘශ්‍ය ස්ටුඩියෝ අනුවාදයන් .manifestකිසිවක් නිශ්චිතව දක්වා නොමැති විට ස්වයංක්‍රීයව ජනනය කරයි, එබැවින් අපි ඒවා නොසලකා හරින ලෙස Git වෙතින් ඉල්ලා සිටියෙමු.

කෙසේ වෙතත්, අප සතුව .manifestදැන් ලස්සන ගොනුවක් ඇත:, compat/win32/git.manifestඑබැවින් විෂුවල් ස්ටුඩියෝ අප වෙනුවෙන් මැනිෆෙස්ටයක් ස්වයංක්‍රීයව ජනනය නොකරයි, එසේම Git .manifestතවදුරටත් ලිපිගොනු නොසලකා හැරීමට අපට අවශ්‍ය නැත.

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.